Secondary display for video playback only

OK, done, but next time will someone tell me, that configuring X.server is fun, I'll punch him right in the middle of his eyes.

Anyway, the solution, that leads me to success, include AMD proprietary driver and VLC player.

firstly, install AMD proprietary driver. Thanks to this thread I used somehow cleaner and should-be-safe procedure with installation code (recommended even if you have already fglrx installed, but experiencing troubles):

sudo apt-get --purge remove fglrx*
sudo apt-get install fglrx-updates fglrx-amdcccle-updates

now you can configure your setup with

sudo amdcccle

it'll open  C atalyst C ontrol C enter
In CCC you configure your displays as 'desktop with one display' or something like that. I don't know exact english phrase, because I use translated GUI. Anyway, it should configure your displays as separate screen.
now restart computer (or X). My computer behave strangely after boot, it needs one suspend & resume to work properly. Don't ask me why, but if you experienced abnormally laud GPU fan, you have probably the same problem and suspend & resume is one way around. For piece in mind, run CCC again and check your settings.
now to the media player. If you don't have VLC yet, install it via App Center. Then open VLC, go to Tools->Setting and

NOTE: solution described here makes all VLC settings permanent, which makes VLC one-purpose player only for video on secondary display. If you want use VLC for other purposes, you should run VLC with this settings set from command line, read VLC command line help

on the first panel 'Interface' uncheck 'embeed video in interface' and uncheck 'Show controls in fullscreen'

(again, phrases may vary, because I have localized GUI in VLC too, thats one good thing about linux -> it localize all your apps by default).
then go to Video tab and check 'Play in fullscreen' and set video output to

Video output X11(XCB)

then turn to advanced/all (?) setting via radio button near left bottom corner.

In tree structure navigate to video and there set 'video width' and 'video height' to your secondary screen resolution. Without this, VLC plays video on my secondary screen in resolution of source, not scaled to fullscreen.
Then expand video->modules->x-window and set it to your desired X screen. Mine (and most probably yours) is

:0.1

Initials :0 means local display and following .1 targets secondary screen. Primary display/screen is :0.0. You can find your configured x screens and their numbers in

/etc/X11/xorg.conf

then should be all set. You can try play video with VLC and it should open on your secondary display fullscreen, while keeping VLC control interface on your primary screen. Only audio is played from your PC speakers/headphones. That we solve in VLC control interface under Audio->Audio devices, where we choose HDMI output. Then you hit Ctrl+L to switch VLC interface into playlist view and you have all your media fully under control.

This procedure describe in short, what leads me to success. In your case, it shall not be as straightforward, because of LINUX. But if you don't understand something or have any problem, just ask.

EDIT: Switch back to radeon driver

I had strange problems with fglrx driver and xorg.conf generated by amdcccle looked pretty normal, so I tried, if it'll work with open-source radeon driver and guess what, it works! Just need a little modification (basically, just replace driver "fglrx" to driver "radeon", beware that there are multiple device sections).

My working xorg.conf looks like this:

Section "ServerLayout"
Identifier     "aticonfig Layout"
Screen      0  "aticonfig-Screen[0]-0" 0 0
Screen         "amdcccle-Screen[1]-1" 2560 0
EndSection

Section "Monitor"
Identifier   "aticonfig-Monitor[0]-0"
Option      "VendorName" "ATI Proprietary Driver"
Option      "ModelName" "Generic Autodetecting Monitor"
Option      "DPMS" "true"
EndSection

Section "Monitor"
Identifier   "0-DFP1"
Option      "VendorName" "ATI Proprietary Driver"
Option      "ModelName" "Generic Autodetecting Monitor"
Option      "DPMS" "true"
Option      "PreferredMode" "2560x1440"
Option      "TargetRefresh" "60"
Option      "Position" "0 0"
Option      "Rotate" "normal"
Option      "Disable" "false"
EndSection

Section "Monitor"
Identifier   "0-DFP5"
Option      "VendorName" "ATI Proprietary Driver"
Option      "ModelName" "Generic Autodetecting Monitor"
Option      "DPMS" "true"
Option      "PreferredMode" "1920x1080"
Option      "TargetRefresh" "50"
Option      "Position" "0 0"
Option      "Rotate" "normal"
Option      "Disable" "false"
EndSection

Section "Device"
Identifier  "aticonfig-Device[0]-0"
Driver      "radeon"
Option      "Monitor-DFP1" "0-DFP1"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
Identifier  "amdcccle-Device[1]-1"
Driver      "radeon"
Option      "Monitor-DFP5" "0-DFP5"
BusID       "PCI:1:0:0"
Screen      1
EndSection

Section "Screen"
Identifier "Default Screen"
DefaultDepth     24
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device     "aticonfig-Device[0]-0"
DefaultDepth     24
SubSection "Display"
    Viewport   0 0
    Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "amdcccle-Screen[1]-1"
Device     "amdcccle-Device[1]-1"
DefaultDepth     24
SubSection "Display"
    Viewport   0 0
    Depth     24
EndSubSection
EndSection

You should backup your xorg.conf before uninstall fglrx, because it is removed during uninstallation process. Then you uninstall fglrx and reconfigure x-server like this:

sudo apt-get remove --purge xorg-driver-fglrx fglrx*
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

Then put back your modified xorg.conf and restart computer (or X). If nothing went wrong, you should see your separate screen config load under radeon driver. Only issue is missin HDMI audio, which you can solve by adding kernel parameter

radeon.audio=1

more useful informations can be obtained in documentation.


I would recommend turnin on the "3D acceleration" option under "graphics"  tab in that virtual machine's configuration in virtual box because your hardware does not support VT-d so instead of that you should use "3D acceleration".


Do you have a sound-control app on your taskbar? If so, right-click it and select "Sound Preferences", then you can move the slider completely to the right which will give you >150.

Using the Up F-key you will only get a maximum of 100. If you are already at 150 and use the Up F-key it will actually drop your level to 100.

Incidentally, I use a ThinkPad which has Up and Down Volume keys on its keyboard, the F7 & F8 are for another use.


What PDF Editors are available on Ubuntu?

There are several FOSS options out there, none of which come close to the functionality of editors such as Foxit PDF Reader under Windows or commercial solutions under Linux. That's why I prefer to run Foxit via PlayOnLinux.

As far as native applications are concerned, Master PDF Editor is probably the most advanced free (as in beer) PDF editing suite available in Ubuntu right now. It's available from the Ubuntu Software Center but requires you to register an account with Ubuntu before installing.

A few months ago I stumbled on Quoppa PDF Studio, a commercial PDF editing solution that runs natively on Linux via Java. It comes with a very impressive featureset and is very close to Adobe Acrobat in terms of PDF editing functions. However, I have found PDF Studio to be a bit less stable than Adobe's solution when editing very large PDF files (≥ 500 pages).

Other than that I would say that PDF Studio is a very good, albeit expensive, piece of software and probably the best PDF editing suite out there on Linux right now.

You can download a free trial version here. It doesn't come with a time restriction. Instead, edited PDFs are automatically watermarked by the software to indicate that you're using the trial edition.


how do i download ubuntu desktop on wnidows 8 and make a dvd to upload ubuntu to my laptop

Download the latest ISO from Ubuntu website.
Download LiLi or UnetBootin
Get an empty USB flash drive and follow the instructions from Lili (more user friendly) or Unetbootin.
Next time you have a similar problem, use google first.


as i know you could not skip versions (incompatibility issues), and you must do it step by step
i recommend you to:
update your version to latest using cmd
sudo aptitude update && aptitude upgrade
and then
sudo do-release-upgrade -d
and you will upgrade to next version....after that you will do the same, and you will go to the next version
good luck


Exiftool should be able to read and write geotags. Here some information about working with GeoTags from the project page.

It is by the way a cli solution.

Install on 16.04 should be easy as:

sudo apt install libimage-exiftool-perl

or

sudo apt-get install libimage-exiftool-perl


An error has occurred setting the element data

Possible cause - Disk being 'Dynamic'.
Open Disk Management in windows 7 and check the 'Type' of each Partition.
if it shows 'Dynamic' then you cannot install ubuntu or any other distro. you need to change it to 'Basic' type which requires deletion of all partitions.Better install it on a external hd or pendrive.


This plugin is installed by the music player. Removing the package rhythmbox-mozilla uninstalls the plugin.


So my issues appears to have been being caused by NOT running in ubuntu 2d and a setting in the bios (VT-x). Once I changed the setting in the bios. The performance became drastically better and I also was then able to allow for 2 cpu's.

Thanks for all of your help.


What does "-ls" do when used with "find"?

For each file it finds, the find command with the -ls action displays that file in a format similar to what this command would display, when you replace path with that file's path:

ls -dils path

This is to say that find with -ls is similar to running many commands that start with ls -dils, one for each file found. It is not similar to running this actual command with no path argument:

ls -dils

The ls command exhibits special behavior when run with no path arguments: it behaves as if a single path argument . has been passed. You've been comparing the behavior of the find command with -ls to the behavior of the ls command without path arguments, but you should compare its behavior to that of ls with path arguments. For example, try this:

ls -dils ./*

(Because ls sorts its output, as mentioned below, an even better comparison would be to many separate ls -dils ./filename commands, one for each filename.)

With those particular files, the output is the same with and without -d. However, find can find directories. You can see the difference between the ls commands with and without the -d option by creating a directory and trying both ls -dils ./* and ls -dils ./*. For example:

ek@Cord:~/tmp$ touch a b c
ek@Cord:~/tmp$ mkdir d

ek@Cord:~/tmp$ ls -dils ./*
147774362773104141 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./a
 71213169107810485 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./b
 23080948090377031 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./c
 25051272927352243 0 drwxrwxrwx 1 ek ek 512 Aug 30 12:35 ./d

ek@Cord:~/tmp$ ls -ils ./*
147774362773104141 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./a
 71213169107810485 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./b
 23080948090377031 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 ./c

./d:
total 0

To reiterate one particular important point: because find with -ls is similar to running many separate ls -dils path commands, it does not behave the same as any particular ls command. (It does behave somewhat similarly to an ls -dils paths..., where paths... is all the paths find found, but it's not all that similar to that either, because the ls command sorts its output, so the results would often appear in a different order.)

Another way to see this is to run a find command whose results include directories with the -ls action, and then run the corresponding find commands that use the -exec action to run actual ls commands with different options. For example:

ek@Cord:~/tmp$ find . -ls
54043195528455285      0 drwxrwxrwx   1 ek       ek            512 Aug 30 12:35 .
147774362773104141      0 -rw-rw-rw-   1 ek       ek              0 Aug 30 12:35 ./a
 71213169107810485      0 -rw-rw-rw-   1 ek       ek              0 Aug 30 12:35 ./b
 23080948090377031      0 -rw-rw-rw-   1 ek       ek              0 Aug 30 12:35 ./c
 25051272927352243      0 drwxrwxrwx   1 ek       ek            512 Aug 30 12:35 ./d

ek@Cord:~/tmp$ find . -exec ls -dils {} \;
54043195528455285 0 drwxrwxrwx 1 ek ek 512 Aug 30 12:35 .
147774362773104141 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./a
71213169107810485 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./b
23080948090377031 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./c
25051272927352243 0 drwxrwxrwx 1 ek ek 512 Aug 30 12:35 ./d

ek@Cord:~/tmp$ find . -exec ls -ils {} \;
total 0
147774362773104141 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 a
 71213169107810485 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 b
 23080948090377031 0 -rw-rw-rw- 1 ek ek   0 Aug 30 12:35 c
 25051272927352243 0 drwxrwxrwx 1 ek ek 512 Aug 30 12:35 d
147774362773104141 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./a
71213169107810485 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./b
23080948090377031 0 -rw-rw-rw- 1 ek ek 0 Aug 30 12:35 ./c
total 0

In the version that runs -ls without -d, the first entries displayed for a, b, c, and d are the output of the first ls command run, with the path .. To verify this, try it with -ok in place of -exec (which operates interactively, prompting you before each command, and therefore makes clear which commands produce which outputs).


iwlwifi 11n_disable=1 - Why does this work briefly?

You may try this, no need driver installed

echo "options iwlwifi 11n_disable=1" | sudo tee -a /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

source


I managed to fix this issue by disabling Hardware Acceleration. Go to settings in Opera. Click on "Browser". Check the box in the bottom left-hand corner "Show Advanced Settings". Scroll until you see "Use Hardware Acceleration when available" and un-check it. This will require a restart of the browser to take affect. Hope this helps anyone in the future experiencing this issue.


What Nvidia driver should I use - I have a Nvidia GeForce 1050TI

Run ubuntu-drivers devices to find what the system recommends to you, if there is no output, then your present driver is already recommended.


From man find:

-regex pattern
              File  name  matches regular expression pattern.  This is a match
              on the whole path, not a search.  For example, to match  a  file
              named `./fubar3', you can use the regular expression `.*bar.' or
              `.*b.*3', but not `f.*r3'.  The regular  expressions  understood
              by  find  are by default Emacs Regular Expressions, but this can
              be changed with the -regextype option.


Have you compiz configuration setting manager (CCSM) installed? If not install it using synaptics. Open it and look under window management, than open the plugin scale. tick the tab bindings and check if initiate window picker for all windows is set to super w. If not so, set the new keybinding and hopefully it will work again. For the other missing functions go through all plugin and set the lost keybindings again.


Any way to exclude accounts from mail indicator?

I don't know any settings to customize the Message Indicator behaviour.
By the way, as a workaround, you could disable the "Check for new messages on startup" and the "Check new messages every..." in Thunderbird account settings for the second account you don't want the icon to get blue.

To access these two options, click Edit -> User Accounts in TB, then select the Server Settings tab for the account you want to disable.

If you do this, just remember sometimes to manually download messages for the second account.


apt-file says it's provided by wamerican: /usr/share/dict/words.  I would:

apt-get install --reinstall wamerican


How to re-enable function keys in byobu?

Note: This only works if you're using Byobu with tmux as the back-end. See other answers for Byobu with screen as the back-end.

Just press Shift+F12 To toggle F-keys on and off.

Example : Launch htop (within a Byobu pane of course) then enter Shift+F12, then if you press F3 you will search in htop processes, not switch to the left Byobu window/pane.

Related question with answer also for screen.


Test this:

Open a terminal.

Run:

sudo su
apt-get update
apt-get dist-upgrade
apt-get install ubuntu-restricted-extras smplayer

Visit:
http://download.videolan.org/ubuntu/trusty/

Download and install:

http://download.videolan.org/ubuntu/trusty/libdvdcss-dev_1.2.13-0_amd64.deb
http://download.videolan.org/ubuntu/trusty/libdvdcss2_1.2.13-0_amd64.deb

sudo su
cd /home/<user-name>/Downloads
dpkg -i *.deb

Run Smplayer for play dvds.


If all you want is to browse the Web change to NAT otherwise :

Network Address Translation (NAT) If all you want is to browse the Web, download
files and view e-mail inside the guest, then this default mode should be sufficient
for you, and you can safely skip the rest of this section. Please note that there
are certain limitations when using Windows file sharing (see chapter 6.3.3, NAT
limitations, page 102 for details).

Bridged networking This is for more advanced networking needs such as network
simulations and running servers in a guest. When enabled, VirtualBox connects
to one of your installed network cards and exchanges network packets directly,
circumventing your host operating system’s network stack.

see virtual box manual

you can use a TAP interface too :

First we have to install the follow :

  sudo apt-get install uml-utilities
  bridge-utils

and after that add to kernel :

  sudo modprobe tun

now, here there is a script that permit have and internet acces in host and guest at the same time :

copy and save as vb add execute permision :

  sudo chmod  +x vb

after that sudo ./vb start and when finish sudo ./vb stop

create the virtual machine as bridge and interface vth0

Here the SCRIPT :

#Check root

USER=$(id -u)

if [ "$USER" -ne "0" ]; then
echo “Must be root”
exit 1
fi

USER= (**OJO – change with your userid ** )
TAP=vth0
BR=br0
ETH=eth0

function doStart {
#it seem not necesary because the userid
#below to virtualbox group
#chmod 0666 /dev/vboxdrv
#chmod 0666 /dev/net/tun

#Create the bridge
brctl addbr $BR
ifconfig $ETH 0.0.0.0 promisc
brctl addif $BR $ETH
dhclient $BR

tunctl -t $TAP -u $USER
brctl addif $BR $TAP
ifconfig $TAP up

echo “$TAP ready”
}

function doStop {
ifconfig $BR down
ifconfig $TAP down
tunctl -d $TAP
brctl delbr $BR
dhclient $ETH

echo “Cleaned”
}

case $1 in
start)
doStart
;;

stop)
doStop
;;

*)
echo “Usage: $0 [start|stop]“
;;
esac

exit 0

more information here


"The location is not a folder" error when opening files

Finally got it! I deleted my ~/.gconf/desktop/gnome/url-handlers folder and now the problem is completely gone.

If you are interested, this was the source of the idea.


This turned out to be a bug introduced in Samba 4.1+
https://www.turnkeylinux.org/forum/support/20160104/samba-updated-and-broke-root-share-any-ideas

There are two workarounds for this:

A) Enable symlinks. Add this to your smb.conf

[global]
    wide links = yes
    unix extensions = no

B) https://bugzilla.samba.org/show_bug.cgi?id=11647#c7

mkdir /mnt/root
mount -o rbind / /mnt/root

and use "path = /mnt/root" instead of "path = /"


installing rtl8814AU wifi adapter driver on ubuntu 16.04

This will be easier if you do sudo apt install git
git clone https://github.com/zebulon2/rtl8814au.git
cd rtl8814au
git checkout 7dde5bd
Then see if make succeeds.  If the make command has no errors I would do
make clean
cd ..
sudo apt install dkms
sudo dkms add ./rtl8814au
sudo dkms install rtl8814au/4.3.21

Reboot

There is an issue with the latest commit https://github.com/zebulon2/rtl8814au/commit/3cf715db6f8e021671b72918929a307847e77e92 as the kernel version specified for it should have been 4.17

If you happen to have no internet connection, edit the file usr/local/src/rtl8814au-master/os_dep/linux/ioctl_cfg80211.c at line 350 you will find
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
Change it to #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
Then the make command should work without errors


ppa for ubuntu-packaged mariadb-10.4 for ubuntu 16.04 xenial

MariaDB provides a package repository which includes packages for Ubuntu Xenial, as stated here.
To add the repository, open a terminal (Ctrl + Alt + T) and execute:
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version mariadb-10.4

The script requires curl, ca-certificates and apt-transport-https (which can be installed by executing sudo apt install <package> replacing <package> with the actual package name).


Using information from this page we can deduce that you need to change the line in the extension.js that says

Main.panel.addToStatusArea([sometext],[othertext])

to

Main.panel.addToStatusArea([sometext], [othertext], 1)

After modifying the extension.js file, hit Alt+F2 and then put 'r' in the box and hit enter.

I haven't found any central source to reference the gnome-shell JavaScript API (called GJS). Would be really handy if there was one easily accessible.


The username is stored on the live DVD in ...

edit/usr/share/initramfs-tools/scripts/casper

The hostname is in there too. The password is in ...

edit/usr/share/initramfs-tools/scripts/casper-bottom/10adduser

If UCK does not allow you to change it from the gui you will need to chroot the ISO yourself and do it manually. More on that in How to customize the Ubuntu Live CD? and on the wiki (the part about gconf is invalid nowadays; but the other information still looks valid).


MiniDLNA or Mediatomb audio pause for about 4 secs during music playback

As mentioned in my comment. Using renice and ionice seems to have fixed my problem.

A combination of setting the minidlnad to -10 and an ionice of real time priority 4 seems to stop the pauses.


I can't swap my left and right mouse buttons

Open up a terminal and enter the following command:

echo xmodmap -e \"pointer = 3 2 1\" 2\> /dev/null >> ~/.xprofile

Then when you log in the buttons will be swapped.


Lock the Nemo icon to the Unity Launcher (Ubuntu 14.04) and customize it

As far as I know, Nemo does not have the sophisticated integrated bookmark options like Nautilus does, but you can add bookmarks manually.

Adding shortcuts to the Nemo launcher icon

To add shortcuts, we need to edit the nemo.desktop file.
In the example below, we add the directory /home/<yourname>/Documents as a shortcut:

Copy the file to your local directory:

cp /usr/share/applications/nemo.desktop ~/.local/share/applications/nemo.desktop

open the local nemo.desktop file with gedit:

Browse in your home directory to the file (~/.local is hidden by default, press Ctrl+H to make it visible)
Drag the file over an open gedit window.

At the end of the file, add a line:

Actions=Documents;
At the (very) end of the file, add the section:

[Desktop Action Documents]
Name=Documents
Exec=nemo /home/<yourname>/Documents
OnlyShowIn=Unity;

(Replace <yourname> by your username)

To add more shortcuts, add more items to the line Actions= (e.g. Actions=Documents;Videos;) and add more shortcut sections as in [4]. An example of how it could look (from the Actions= line):

Actions=Documents;Videos;

[Desktop Action Documents]
Name=Documents
Exec=nemo /home/<yourname>/Documents
OnlyShowIn=Unity;

[Desktop Action Videos]
Name=Videos
Exec=nemo /home/<yourname>/Videos
OnlyShowIn=Unity;

After log out / log in, you should see the changes, and the shortcuts should be available.

Notes

In .desktop files, you should not use ~ as a replacement for your home directory, but use absolute paths.
To have direct access to the file, you could include a link that opens the .desktop file in gedit directly. Below an example of the bottom section of the nemo.desktop file and an image of how it looks in your quicklist (to use it, replace all occurrences of jacob with your username, but that's obvious):

Actions=Documents;Videos;divider1;Edit bookmarks;

[Desktop Action Documents]
Name=Documents
Exec=nemo /home/jacob/Documents
OnlyShowIn=Unity;

[Desktop Action Videos]
Name=Videos
Exec=nemo /home/jacob/Videos
OnlyShowIn=Unity;

[Desktop Action Edit bookmarks]
Name=Edit Bookmarks
Exec=gedit /home/jacob/.local/share/applications/nemo.desktop
OnlyShowIn=Unity;

[Desktop Action divider1]
Name=........................
Exec=zenity --info --text 'This is just a divider'
OnlyShowIn=Unity;


Can't update from official repositories [Error 409]

The easiest way is to go directly to Software & Updates → Ubuntu Software. In that tab, where it says "download from" change the one you have (you will have the one from your country) and change it to Main Server, so you don't have to edit the sources.list file. After few days if you want to use the one in your country again (see if it works again) and if it does not continue with the main server if it does not give you problems.


If you choose "Something else..." you will have the option to format the unallocated space to ext4 and set it as the root partition ('/').


How to download a specific package beforehand, so that I can install this after setting up Ubuntu without having an internet connection?

You could use Keryx - http://keryxproject.org/


Dual Screen Maximize issue on Left Screen after installation / removal of NVidia drivers

After you've installed bumblebee what did you do to enable the dual monitor options??

bumblebee has some issues with dual monitor computers.
here's a way to make it work correctly (please keep in mind that some hardware may be unfit for this and will not work (properly)).

https://github.com/Bumblebee-Project/Bumblebee/wiki/Multi-monitor-setup


Web start (jnlp) problem with Oracle 7 Java

OP has solved and wrote : :

  I have solved this problem. I reinstalled oracle-java7-installer and
  it now works well.

I have put it as answer because it can be useful to other people in future.


I ended up digging through a backup and restoring all the files from /etc/pam.d. this appears to have fixed the slow login problem.


How can I build i386 and amd64 packages on my amd64 laptop using debuild

The packaging (ie debuild) is not the hard part here: building the application is.

There are many ways to build i386 binaries on a 64bits system

Using a 32bits virtual machine

Installing one via virtualbox is straightforward.

This is by far the easiest but it will take a significant amount of disk space and you will need to setup the entire system from scratch.

Setting up a chroot

The idea is to create a minimal i386 sandbox in your 64bits setup.

You will install all the build toolchain and i386 dependencies of your application in the chroot and perform the build from there.

This approach is lighter than the vm one and offers a good deal of isolation.

Kaizou tutorial explains clearly how to do it

A chroot ready to build a gtk vala application will eats about 700M on your harddrive.

Using cross compilation

cmake is able to build your application easily provided you have the multilib toolchain installed.

The multilib toolchain can be installed via

sudo apt-get install g++-multilib

Then you have to specify the m32 parameters to cmake so it can build i386 binaries which is easy.

Of course, you will need to install on your computer all the i386 variants of your application dependencies.

Provided the apt gods are with you, this can be done with:

dpkg --add-architecture i386
apt-get update
apt-get install libgtk-3-dev:i386 libgee-0.8-dev:i386 ...

Once this is done you can package your shiny i386 binaries with

debuild -ai386 -i -us -uc -b
debuild clean


USB devices not being detected in VirtualBox

I saw a post on some random forum saying that 14.04 had issues with this. I reinstalled VirtualBox with the latest version and now it works.


Application compatability with the Cinnamon Desktop

There is no Cinnamon specific applications except cinnamon extensions and themes , Since cinnamon is a fork of gnome3 you can run all gtk apps without any problem .you can even run qt apps without any considerable performance lost,

please note that interface of application depends on the toolkit (usually qt or gtk)used for create it


What does this mean? = It FAILED

Doesn't my machine satisfy unity's requirements? = NO

You may try running Unity 2D instead or Gnome Fallback or upgrade your graphics card.

The other option is to run Live CD and perform the same test to find if it fails again. It may be a hardware driver issue.

BTW at least 3 bugs reported on Mobile 4 Series Chipset and Error while running unity_support_test.


How to prevent Ubuntu 16.04.2 from upgrading kernel version to 4.10.x and xserver to 1.19.x

Here is a link to the HWE guide.

There is another good link

The 4.8 kernel has a limited support in Ubuntu. If you want to have a "stable" kernel that won't be updated to other major versions, you can install Ubuntu 16.04.1 that has the 4.4 kernel. It will be supported till the 16.04 EoL in 2021.

Another option is to install the 4.4 kernel by

sudo apt install linux-generic

then remove all 4.8 (HWE) kernels and you are done.

The same thing is with X.org.

The package is xserver-xorg. If you install it, other meta packages (xserver-xorg-hwe-16.04) will be automatically removed.


Zone AFXR fails on permission error - dumping master file: /etc/bind/zones/tmp-yVIchKNnUC: open: permission denied

I solve this problem by changing apparmor rules in /etc/apparmor.d/usr.sbin.named.

I've edit the file and changed the line:

  /etc/bind/** r,

to

  /etc/bind/** rw,

and then:

service apparmor restart
service bind9 restart

This change also prevent permission denied errors when saving files to /etc/bind/slave.


Ubuntu 14.04 doesn't recognize Nvidia graphic card

Did you try this: Ubuntu and ASUS G750JM, GTX860M / Nvidia problems ?

I have the same graphics card in my laptop and have serious issues still too.  Sometimes if I follow those instructions my the card works great other times,  it freezes randomly and if I don't run nvidia-xconfig I can't boot ubuntu anymore.  It's a very detrimental way of setting up the card but it is the best I have found and it took some work to figure out.


node.js not starting by default in Lubuntu guest running in Oracle VM VirtualBox

Run following command:

$ nvm alias default stable


I've had similar issues, one fix that may work is to redownload Ubuntu to a different USB again, or, if you can, install from a CD disk. CD's tend to be more stable, and they worked well for me. If the system is saying that there is no errors, you may want to attempt to remove a ram stick, and try with one.
Finally, in the image you provided, it shows the RAM as 0Mhz(?!) which could hint at faulty memory. Best luck with this issue, it seems likely to be a hardware problem.


Can't login to Ubuntu GUI with correct password

I see 2 possible problems.

Wrong permissions on .Xauthority file.

Run chown username:username .Xauthority on a terminal in your home directory. Replace username with your actual username.

The .Xauthority-file can be found in each user home directory and is used to store credentials in cookies. You can find more info on X authentication and X authority in the xauth man pages (type man xauth in a terminal). If you are not the owner of this file you can't login since you can't store your credentials there.

Broken packages and dependencies.

Start Ubuntu in recovery mode from grub, select dpkg wait until it finishes and you are done.


Ubuntu 14.04 running from usb stick is slow

(sorry cannot comment yet)

Try Lubuntu. Lubuntu uses light LXDE desktop.
Lubuntu is focus on speed and energy-efficiency with low hardware requirements.

http://lubuntu.net/

good luck


Can't curently log in as user in ubuntu 12.04

Did your mouse cursor move after you typed your login password? In my case, the mouse cursor appeared but I couldn't move it at all. It was totally frozen up. I solved this issue just by reinstalling GRUB. If your situation is similar, this should help.

Power off your computer.
Press power button to boot up.
Hold down the Shift to get into GRUB menu.
Choose "Recovery mode" and press Enter.
You may have to login with your regular user name.
Run these commands:

sudo apt-get purge grub-common (This will delete your grub)
sudo apt-get install grub-common grub2 (Reinstall grub)
sudo update-grub (this is important)
sudo init 6 (This will reboot your laptop)

Reference: Ubuntu stuck at desktop w/ frozen mouse after apt upgrade


Can i make my 3 monitor set-up merge to a single monitor if the other two are not available

Try this: put some windows on all three displays, then disconnect the secondary displays and see if the windows on them go on the primary display. If this happens, you can plug only your primary monitor in the UPS and the other two in a normal power plug.


Problem booting dual boot Ububntu / win10 after partition size change

I ended up giving testdisk another try. This time I used the 'deep search' option and got a huge list of deleted partitions. Luckily only 1 combination of the resized Win10 partition + Linux extended partition fitted what I remembered was the situation before I attempted the resize. So I backed up the whole drive, and gave it a try. It worked.


ubuntu 18.04 hard disk makes system unwokable, very much activity out of no where

This was driving me crazy for weeks.. finally I was able to solve it updating to nvidia-driver-430. Probably changing to use nouveau display driver also workaround this issue.

Ok.. in my case the problem wasn't actually the nvidia driver, but many heavy Chrome extensions that were enabled by default due to some corp policies activated when I clicked the option "Enable synchronization". After that the label "Managed by..." appears.

At that time it wasn't obvious to me that this would cause such disk writing poor performance.

The solution was to deactivate account synchronization, although this meant losing my favorites.

Also and finally, make sure you follow the instructions on this answer https://askubuntu.com/a/1035790/776744


Wine Steam Error: Unhandled exception: unimplemented function x3daudio1_7.dll.X3DAudioInitialize called in 32-bit code (0x7b83ba4e)

Install play on linux.

Open play on linux.

Down on the lower left hand side of the window, click on "install a non-listed program".

Click next, click "install program in a new virtual drive" and then click next.

Make a name for the drive and then click next.

Click next again.

Click "32 bit windows installation" and then click next.

Wait a few minutes while wine updates.

Then, click browse.

Locate the setup.exe file and click "open".

Then click next.

Accept all the defaults.

Click on RocketLeague.exe to make a shortcut and then click next and select a name and click next and select "i don't want to make another shortcut" and click next.

Now, open play on linux and click on the RocketLeague shortcut and click "run".

EDIT:

To install STEAM just open play on linux and type steam and click on the steam installer. It's one of the preinstalled installers.


computer freezes when logging in after updates

Problem solved :

Pressings crtl+alt F2 i switched to console
then i removed openarena

sudo apt-get remove openarena-server

Reboot and the problem was solved. I tried this when i noticed openarena server was started during boot.


rsync giving "file name too long" errors

As mentioned over on Unix StackExchange, the maximum filename in an ext4 system is 255 characters. Since you have encrypted filenames turned on with your destination eCryptfs filesystem, and since eCryptfs is just a layered filesystem on top of your ext4 filesystem, all file name path elements, once encrypted, must be less than 255 characters. Similarly, the full path of any of your encrypted file names must be less than 4096 characters.

It seems that at least one of your source files has a path and/or name which violates this limit.

A couple of options come to mind to allow rsync to be able to complete its work:

Find all files in your source filesystem that have path elements longer than 143 characters (or total paths greater than, perhaps, two or three thousand characters) and rename them to have less than that. (143 pulled from the previously referenced Unix StackExchange post due to encrypted filename padding). This may or may not be possible, depending on if the files in question can be renamed which preserving the functionality that you need on your system.
Turn off filename encryption on your eCryptfs system. Of course, you'll lose the anonymity of your files names, but this may be acceptable to you.


15.04 is way past its end of life date (Feb 4 2016) so there is no supported upgrade path. You will have to back up your data and do a clean install.

The answers to this question supply some alternate strategies but the simplest thing to do is a clean install.


"Run In Terminal" message doesn't appear

Setting the "executed as program" permission is not enough as there's a global Nautilus preference that alter the behavior when you click on an executable text file.

Open the Nautilus Preferences (Edit -> Preferences) and select the Behavior tab:

Select the "Ask each time" option to get the following popup when you click on your .sh files:


Why isn't python 3 the default python binary?

I don't know what "docs" you are reading nor what they say, but the /usr/bin/python is just a symbolic link to the default version of python, in this case 2.7, which is the result of just typing python on the terminal. This is the result of PEP 394 which defines that

  for the time being, all distributions should ensure that python refers to the same target as python2.

type python and file /usr/bin/python will confirm this.

The reason for this arrangement other than the convention, is that the source package python-defaults in Xenial is the version 2.7.11, so the python symbolic link points to this version.

To use python 3 you have to be explicit and type python3 in the command line, which is recommended in case you need an specific version, this can also be done with python 2, typing python2. Ubuntu includes both python 2 and 3 versions by default on all current versions.

There are plans to migrate everything to python 3 and marking it as the default.


Nautilus files sidebar occupies more than half of page

You may have accidentally moved the position of the separation bar. This will be saved in your preferences, therefore will survive a reinstall.

To get you layout back move you mouse to the line separating left from right side until the cursor changes to something like (example shown for 19.04):

Then click and hold the left mouse button to be able to drag the line to the desired position:

Release the mouse button if happy. Done.


Python3.5.2 error - QtGui.so: undefined symbol: PySlice_AdjustIndices

Try to install PyQt5 with version < 5.11 using pip

sudo pip3 install -U "PyQt5<5.11"

if you don't have pip you can install it first from ubuntu's apt using

sudo apt install python3-pip

or from pypa.io using

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py


How do I get my bluetooth device working?

Apparently there are a lot of fake CSR dongles. Linux has code to deal with it, but it doesn't seem to work with all fake dongles. The fake ones have a bad return code for bt Delete Stored Link Key function. To see if this is the case for you, run:

sudo btmon

in one terminal, and while it's running, run

sudo hciconfig hci0 up

and btmon should show an error after Delete Stored Link Key like :

Status: Unsupported Feature or Parameter Value

To fix this, I edited btusb.c and recompiled the btusb.ko kernel module. To get the source code into the current directory:

apt-get source linux

To build and install, see this answer. You should probably back up /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko before overwriting it.

I had to comment out 2 if statements in btusb.c to force the conditional code to run (you can try fixing if statements if you're able), as such:

/* Fake CSR devices with broken commands */
// if (bcdDevice <= 0x100 || bcdDevice == 0x134)

and

/* Detect controllers which aren't real CSR ones. */
/* if (le16_to_cpu(rp->manufacturer) != 10 ||
    le16_to_cpu(rp->lmp_subver) == 0x0c5c) */  {

This hacked btusb mod now assumes any CSR is fake, and mine is working. I guess the new clones are using different numbers. Unfortunately I'll have to copy or rebuild btusb.ko whenever I get a new kernel.


Whats the difference between the 12.04 CD and DVD versions?

No, the DVD is not multi-architecture.  It simply includes more packages.  It's mainly intended to be the desktop edition CD plus all the stuff we would add to that if only the laws of physics (the CD size limit) didn't get in our way: for instance, it includes Thunderbird, the IcedTea Java web browser plugin, the GIMP image editor, Inkscape, the PiTiVi audio/video editor, and various others.

See also:

What is on the DVD Edition of Ubuntu?


What is the latest, tested, Ubuntu version which works on a MacBook 1,1 (early 2006)

My laptop's specs are similar to yours but I have more RAM. I have no problems with lubuntu 14.04

Even when I first got my computer 5 years ago I found the kubuntu at the time was a bit slow on it. I don't think that's an option. KDE (kubuntu) and Unity (ubuntu default) are designed to be fancy and beautiful, not lightweight.

Ubuntu with gnome or Xubuntu would be other options, but personally I like lubuntu best, and it's the lightest.

If you want something even lighter than lubuntu there is puppy linux http://puppylinux.org/wikka/tahrpup

I don't think it's necessary to go that light.


A byte has 8 bits.  Because hex uses 16 characters, 0-9a-f, it can only display  four bits per character.  It takes two hex characters to display one byte.  Add to that that most characters in the hex display have a space after them and you see why the hex display takes up to three times as many bytes as the binary file.

Example

Let's create a file containing a single byte:

$ printf 'a' >afile
$ wc afile
0 1 1 afile

Now, let's display it with, for example, hexdump -C:

$ hexdump -C afile
00000000  61                                                |a|
00000001

The a character is ASCII character 61 (hex).  The single byte in the file takes two characters to display in hex (and three if the hex has a space after it).


What is easiest way to share on Ubuntu touch (bq aquaris 4.5)

Try Dekko for email or uDropCabin for Dropbox.


Firefox Quantum : HTML files from internal storage (/usr) do not open

It seems that you have installed Firefox as a Snap. It is normal that it can't access the folders inside root-filesystem:

$ snap interfaces | grep firefox
:avahi-observe             firefox
:browser-support           firefox:browser-sandbox
:camera                    firefox
:cups-control              firefox
:desktop                   firefox
:desktop-legacy            firefox
:gsettings                 firefox
:home                      firefox
:network                   firefox,pulsemixer
:opengl                    firefox
:pulseaudio                firefox,pulsemixer
:screen-inhibit-control    firefox
:unity7                    firefox
:upower-observe            firefox
:x11                       firefox,pulsemixer
-                          firefox:network-observe
-                          firefox:removable-media

Consider to remove Snap with

sudo snap remove firefox

and install APT version

sudo apt install firefox

and visit local help page.


The standard Ubuntu music player, Rhythmbox, is able to do that. Just select all the songs/artists you want to copy from your iPod and drag them to the Music tab under Library (all on the left hand side). Once it's done, you can find them in the folder that's under "music library" (edit > preferences > music). Rhythmbox also syncs. I don't use that myself but that might be even easier.


Error while installing Omnet++ on Ubuntu 16.04 : Cannot find osgEarth

Installing the libgeos-dev package, and then editing the configure.user file in my OMnet++ source directory solved my problem.

$ sudo apt-get install libgeos-dev

Change the line #OSGEARTH_LIBS= to this:
OSGEARTH_LIBS=" -losgEarth -losgEarthUtil -lgeos_c "
Make sure to remove the # in the beginning.

Now run:

$ . setenv
$ ./configure

And it should work..

Others have also faced this problem before and have the fix mentioned here solved their issues:
http://gmt.soest.hawaii.edu/boards/1/topics/4621
https://trac.osgeo.org/postgis/changeset/11363

Answered by Attila Török on the omnetpp google group (omnetpp@googlegroups.com)


Look under the following locations for references for 'ssh' executable (including programs mentioned in 'source'd files within the listed location. (Note: assuming you use bash as your default shell)

$HOME/.bashrc OR $HOME/.bash_profile OR $HOME/.profile OR /etc/profile


installing Anaconda, errno 2 no such file or directory

I did the same thing initially. I inadvertently downloaded the Power8 version and got the same message. I use Linux Mint. I had to choose the 64 bit x86 installer above it. If you cut and paste the command and choose the Power8 installer, the filenames are actually different which is why the command errors out.


How to undelete files and folders that have been deleted using shift+delete

sda is the whole drive, you should use sda5 as this appears to be your OS-partition. So if you modify your command to

sudo extundelete --restore-all --after $(date -d "-2 hours" +%s) /dev/sda5

it should work as you expect.


Windows Installer in WINE cannot connect to network

The latest version of Spitfire Audio App has a garbage rating in Wine as shown in the below screenshot. Manually downloading Spitfire Audio App version 3.1.15 which  has a platinum rating works in Wine according to WineHQ.

To install Windows applications using Wine, follow these instructions source :

Download the Windows application from any source (e.g. download.com). Download the .exe (executable).
Place it in a convenient directory (e.g. the desktop or home folder).
Open the terminal, and cd into the directory where the .exe is located.
Type wine the-name-of-the-application.extension (e.g. wine realplayer_installer.exe).

This will start the .exe using Wine. If it is an installer, it should then run as it would in Windows. If the application asks for a directory to install the application to, select put it under C:\Program Files.


How do I create a shortcut and place on the desktop?

To create a shortcut on your desktop follow these steps:

Create a file with a name of your choice and with the extension .desktop

e. g. minecraft.desktop
Open the file with your text editor (File > Open... or Drag and Drop)
Inside the file type the following:

[Desktop Entry]

Encoding=UTF-8

Name={Name Of The Application Of Anything Else}

Comment={Optional}

Exec=/bin/sh "{directory of the script e. g. /home/zignd/script.sh}"

Icon={directory of the icon (Optional) e. g. /home/zignd/Pictures/Icon.png}

Categories={(Optional) e.g. Games,Media,Development}

Type=Application

Terminal=0

Note that you need to delete the the brackets and what is inside it. You can also use this shortcut in the launcher just drag and drop it.
Save it and enjoy your shortcut.


Ubuntu server 18.04: clamAV does not work due to missing /var/run/clamav/clamd.ctl

I had the same problem with Xubuntu 18.04 LTS Desktop. And I also tried the other solution with no success.
What worked for me was to purge clamav.
sudo apt-get purge clamav

Maybe you have to purge the daemon too. Don't remember.
Make sure that /etc/clamav/ and /var/run/clamav are not existing anymore.
Then reinstall clamav and the daemon in one command. (I got the feeling, that if you install clamav and then the daemon the first might already be running and blocking some files. But that's just a guess.)
sudo apt update
sudo apt install clamav clamav-daemon

After that, it worked fine for me.
After the install command the file /var/run/clamav/clamd.ctl should be created.


Connected to network but not to internet, how to make it work?

If you have Ubuntu >= 18.04 then, yes, they will get lost eventually because they get overwritten. Jack Wallen explains this in his article, and how you should possibly configure your DNS.

If you have Ubuntu < 18.04 then you can manually edit some of your other settings using /etc/network/interfaces

Recap:

18.04

Basically start by modifying your network config files now located at: /etc/netplan/<<01-99>>-netcfg.yaml. You'll want to make the appropriate edits to the .yaml file like so:

...
nameservers:
    [8.8.8.8, 8.8.4.4]
...

then type: sudo netplan apply or sudo netplan apply --debug if something goes wrong.

< 18.04

edit: /etc/network/interfaces like so:

...
dns-addresses 8.8.4.4,8.8.8.8
...


unable to access mounted iso through terminal

Linux is case-sensitive AND whitespace sensitive - any of the following should work

cd Heroes\ III

cd "Heroes III"

cd 'Heroes III'

or you can just type enough of the name to be unambiguous (in this case just H would be enough since there's only one file, but for illustration let's add a few more characters)

cd Her

and then press the TAB key to let the shell auto-complete the filename with the necessary quotes / escapes for you


I am not 100% sure, and you should back up your data.
but back up is must if you are installing from USB or cd/dvd.

directly upgrading from servers is much more safer, and most probably will not lose data, i am not sure about added applications.
as you can see it
https://help.ubuntu.com/community/NattyUpgradesNetwork Upgrade is mentioned as recommended. (and not dvd/usb) when you upgrade 11.04 to 11.10make sure that your 11.04 is completely updated.network is recommended only when you have a complete successive version installed, which applies to your case. so not an issue.keep that in mind.sometimes applying old data to upgraded version can cause errors.To cut a long story short.(you can download 11.10 ISO to usb/dvd,

for other uses in future, but dont install from them)

go for a network upgrade
https://help.ubuntu.com/community/NattyUpgrades

(instructions given here, ithink will be the same for 11.04to 11.10)

take back up for safety, but upgrade from network and not usb/cd/dvd.


MBA Mid 2011: Black screen on Boot (Installation)

I don't think that your older Macbook Air is supported although it does have an Intel CPU so you might be able to get the 32-bit version to work.

Sources:

Compatibility: http://releases.ubuntu.com/15.04/

Specifications: http://www.anandtech.com/show/4512/the-2011-macbook-air-specs-and-details


Ksplice allows you to apply patches to a running kernel without rebooting the system.

It freezes your kernel execution momentarily and points the routines that are modified to the new "patched" routines.  Once this has been re-pointed, it resumes your kernel execution.

Most /minor/ updates would probably be patched in this method but any significant changes would still require a reboot.  Since most security patches are considered minor adjustments, this would work.  Major updates would require a reboot regardless.


Microsoft silverlight not in Ubuntu 13.04 Netflix desktop app

Installing Moonlight? Extracting .crx files? describes how to install Moonlight, the open source equivalent to Silverlight, into Ubuntu.


I have.
The battery lasts about an hour and a half.

Video drivers should be installed by generating a ubuntu-specific package from the download from AMD (not by ubuntu's additional drivers).

Hibernation doesn't work (it works, see update).

Everything else works.

Update: The only thing I couldn't get to work were additional drivers for the Touchpad on/off led, and its multitouch features.

laptop-tools (package) and indicator-cpufreq increase your battery life, but not by much. I'm still working on that.
https://launchpad.net/indicator-cpufreq

If battery life bothers you, you can read additional information here (there are great links in the answers and comments):
Ubuntu 12.04 Battery problem
and
Is there ongoing work in the kernel team to improve battery life under linux?

indicator-cpufreq PPA (their instruction says not to use for Precise and above, but worked for me):
https://launchpad.net/~artfwo/+archive/ppa

Also, hibernation works (it wasn't enabled by default or something).

To enable hibernation, type:

$ gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

And paste the following text into that file:

[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

Source: HowtoGeek.com how to enable hibernation in 12.04


How can I chat in the terminal on a local LAN?

Many such solutions are there, I experimented with cryptcat a bit. First install it:

sudo apt-get install cryptcat

In the first machine use

cryptcat -nvlp <port_number> -k <password>

and the in the second use

netcat -nv <ip_number> <port_number> -k <password>


Presumably, you are running the script as:

sh ForLoopAlphabetTest.sh

In Ubuntu, sh is symlinked to dash; as dash has no concept of arrays, you are getting the syntax error for (.

The script works perfectly on bash, so it would be fine if you were running it as bash's argument:

bash ForLoopAlphabetTest.sh

Now, you have the bash shebang on the script, so you could make the script executable (chmod u+x ForLoopAlphabetTest.sh), and run it as:

/path/to/ForLoopAlphabetTest.sh

or from the script's directory:

./ForLoopAlphabetTest.sh

Also note that, your script contains brace expansion {a..z}, and C-style for construct: for (( ... )) which are also not supported by dash; so if your goal is portability, you should look at POSIX sh syntaxes only.


File Manager showing different behaviour when opened as root and as a normal user

This looks like it's a theming issue related to the Gnome Staging PPA. Please revert to the stock version of Gnome:

Install ppa-purge:

sudo apt install ppa-purge

Log out of your graphical user session.
Switch to a virtual terminal (Ctrl+Alt+F1) and log in there. We're going to replace the graphical environment so let's better not use it while we do that.
Purge the Gnome Staging PPA:

sudo ppa-purge ppa:gnome3-team/gnome3-staging

This will probably take a while. For more info see How can PPAs be removed?
Reboot.


Join server to active directory without adding login via AD

To configure Ubuntu as domain member, there is a good tutorial for that.

Winbind and Samba are your friends


Ubuntu 12.04 Lenovo Thinkpad W530 with Mini Dock Plus Series 3 - No Output via DVI

It seems I found a workaround although it's not ideal.

It so happened that I wanted to rebuild my Ubuntu 12.04 install as I'd got myself into an nvidia driver hell.  I decided to install Ubuntu with the laptop in the dock and the discreet GPU enabled in the BIOS.  This appeared to force Ubuntu to install the nvidia drivers and both of my external DVI displays are now active and I'm running my laptop in triple screen glory.

The downside is that I have to enable the Intel GPU in the BIOS if I want to run my laptop out of the dock and on battery power.  If I leave the discreet GPU enabled then the laptop is constantly freezing.  I suspect a driver update may fix this issue.


Can I somehow make at print the hostname in the email with output?

In the mail headers (in Thunderbird: "view - message source" or Ctrl-U) you should see from where the mail originated, e.g.

Return-Path: <jean@myAcer>
X-Original-To: jean@myAcer
Delivered-To: jean@myAcer
Received: by myAcer.localdomain (Postfix, from userid 1000)
    id B2E23A11E3; Fri, 15 Mar 2019 20:16:50 +0100 (CET)

If not, take a look at your postfix configuration in '/etc/postfix/main.cf'. There should be a line 'myhostname = ...'.


Missing disk space after upgrade from 11.04 to 11.10. How come?

First off, you have asked 3 questions instead of one. Please do create separate questions in the future. Also, it would help you get better answers if you add more information to your questions. Now on to answering your questions,

What took all the 24 GB?

You stated in the question yourself that you allocated 25 GB for Ubuntu. So well, there you go.

How do I add more space to my home folder?

There are already a few questions on the site similar to that, you can take a look at How can I add more disk space to my home directory?

Why does Disk Usage Analyzer show there is 136.7 GB in my filesystem?

The Disk Usage Analyzer is showing the entire hard-drive. Everything when mounted in Linux falls under a single root in a tree-like structure. Hence it reports to you that the entire filesystem is 136.7GB in size. Moreover, this is the Disk Usage Analyzer, you'd have better info about the size occupied by your partitions and all with a tool like Disk Utility or  gparted  . I've attached a screenshot below to show you what I mean.


Plymouth starts very late in Ubuntu 18.04

I've the same problem with my old PC and https://askubuntu.com/a/79959 solved it a bit - that is to set FRAMEBUFFER=y in the initramfs. Things were better with Ubuntu 14.04 though.


Which free software can you use to create rotating 3D Spacefill models of molecules in .gif format?

QuteMol

Overview

QuteMol produces some of the most beautiful molecular visualizations I have ever seen. The software is FLOSS and available from the official repositories.

Description

  QuteMol is an open source (GPL), interactive, high quality molecular
  visualization system. QuteMol exploits the current GPU capabilites
  through OpenGL shaders to offers an array of innovative visual
  effects. QuteMol visualization techniques are aimed at improving
  clarity and an easier understanding of the 3D shape and structure of
  large molecules or complex proteins.

  Real Time Ambient Occlusion
  Depth Aware Silhouette Enhancement
  Ball and Sticks, Space-Fill and Liquorice visualization modes
  High resolution antialiased snapshots for creating publication quality renderings
  Automatic generation of animated gifs of rotating molecules for web pages animations
  Real-time rendering of large molecules and protein (>100k atoms)
  Standard PDB input
  Support as a plugins of the NanoEngineer-1 the modeling and    simulation program for nano-composites (new!)

  QuteMol was developed by Marco Tarini and Paolo Cignoni of the Visual Computing Lab at  ISTI - CNR.

Screenshot

Installation

QuteMol is available from the Ubuntu Software Centre:

(source: ubuntu.com)

If you prefer the CLI you can install QuteMol with:

sudo apt-get install qutemol

Note: The Ubuntu build appears to have a number of bugs. Some minor UI elements don't work correctly and the rendering will produce dysmorphed structures at times. The last point seems to happen mostly when working with small molecules. All of these issues can be remedied by running QuteMol under WINE or PlayOnLinux.

I tried to build QuteMol from source to see whether the issues are restricted to the version in the repositories but it turned out to be a ridiculously hard task and didn't quite work.

Usage

Basic Usage

QuteMol is very easy to use. Open a PDB file of your choice, adjust the view and hit the export button:

Make sure to choose the GIF format:

Select the rendering mode of your choice. You can set the FPS count by adjusting the rotation time of the animation and the number of frames:

Rendering Modes

Full rotation mode:

Inspection Mode:

Six-Sides Mode:

Methadone (as depicted in the question):

(Orientation and shader settings vary a bit but could be made to look identical with a little bit of tweaking here and there)

Finding structural data

PDB databases

QuteMol takes standard .pdb files as its input. This format is most commonly used for proteins and other macro-molecules but can be used with small molecules as well. You can find a large selection of macro-molecular .pdb files at the Protein Data Bank.

Similarly rich structural libraries for small molecules that come with .pdb downloads are hard to find, but you can try your luck on one of these:

https://www.ebi.ac.uk/pdbe-srv/pdbechem/
http://xray.bmc.uu.se/hicup/
http://ligand-depot.rutgers.edu/ld-search.html

Other databases that might or might not offer PDB files can be found here.

Just to get you started I have uploaded the PDB file I used for Methadone here. This one might work better on the WINE/PoL version.

Other ways to get PDB files

You can also attain .pdb files by converting them from other, more ubiquitous formats such as MDF .mol files. You can do so with babel, a powerful command-line tool that converts between a multitude of different chemical structural formats. Install it with

sudo apt-get install babel

babel is very straightforward to use. Simply specify the file input and desired output and let it do its magic:

babel methadone.mol methadone.pdb

Or if you want babel to add implicit hydrogens:

babel -h methadone.mol methadone.pdb

You can also change the protonation state by defining the pH:

babel -h -p 6 methadone.mol methadone.pdb

Just make sure to use files with three-dimensional structural information, otherwise your .pdb output will be nonsensical.

Good sources for 3D MOL/SDF files are Pubchem and ZINC. Make sure to choose the 3D SDF option when downloading files:

Additional export options

GIFs are fine for web publishing but because of their size and other issues they can be quite a chore when used in presentations. For this particular use case I have written a Nautilus script that quickly converts GIF files into MPEG4 videos:

#!/bin/bash

# NAME          gif2mp4 0.1
# AUTHOR        Glutanimate (c) 2013 (https://askubuntu.com/users/81372/glutanimate)
# LICENSE       GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DESCRIPTION   Converts GIF files of a specific framerate to MP4 video files.
# DEPENDENCIES  zenity,imagemagick,avconv

TMPDIR=$(mktemp -d)
FPS=$(zenity --width 200 --height 100 --entry --title "gif2mp4" --text="Please enter the frame rate.")
VIDDIR=$(dirname $1)

if [ -z "$FPS" ]
  then
      exit
fi

notify-send -i video-x-generic.png "gif2mp4" "Converting $(basename "$1") ..."

convert $1 $TMPDIR/frame%02d.png
avconv -r $FPS -i $TMPDIR/frame%02d.png -qscale 4 "$VIDDIR/$(basename "$1" .gif).mp4"

notify-send -i video-x-generic.png "gif2mp4" "$(basename "$1") converted"

rm -rf $TMPDIR

Output sample: https://www.youtube.com/watch?v=odLnUwj8r4g

Installation instructions can be found here: How can I install a Nautilus script?

PyMOL

Overview

QuteMol is a fantastic little program but quite restricted in terms of rendering modes and image manipulation. For more advanced handling of compound visualization you might want to check out PyMOL. A tutorial on how to create simple animations can be found here. I would have written up a tutorial here but I am not proficient enough with PyMOL to do so.

One last thing, though. If you want to achieve a similar graphical fidelity with PyMOL as with QuteMol you should check out these blog entries:

http://cupnet.net/ambient-occlusion-pymol/

http://lightnir.blogspot.de/2008/09/cute-molecules.html

Screenshot

I hope you found this small overview of rendering options useful. If there are any mistakes in this post please feel free to edit them.


Your /opt/gnome directory is not writable by you. either chmod 777 /opt/gnome/ -R or better yet, configure jhbuild to run from your home directory.

If you followed those directions exactly jhbuild would be running as a normal user not as root.


Install gmanedit.

Gtk+ Manpages Editor is an editor for man pages that runs on X with GTK+.
Gmanedit is an application which allows you to edit manual pages (man) on Linux/Unix systems.
It is like most common HTML editors but more easy. You need to know manpages format.


Thanks to your own answer I was able to figure out what was causing same issue on my machine.

dfconf reset -f /org/gnome/

did the trick. However I did not want to lose all settings so I made backup using:

dfconf dump /org.gnome/ > backup_file

I started to narrow the problem and I found out that it was enough to reset /org/gnome/shell/enabled-extensions.

I am using a few extensions and I found out that the one that was causing all this mess is Workspaces to Dock.
All that was enough to disable this extension.


you can generate sources.list file from  http://repogen.simplylinux.ch/index.php

select your country --> select your version --> select checkbox for repository --> click on generate List

copy and paste generated list to /etc/apt/sources.list :

gksu gedit /etc/apt/sources.list

then run command for update and upgrade the system.

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

Note : if you selected third party software’s PPA then you have to add GPG Keys that is listed in GPG Keys section.


How to enable user themes in Gsettings (Gnome-Tweaks)

First, to install the "user themes" extension using the terminal, if you haven't already, you can run the following command:

sudo apt install gnome-shell-extensions

This will install the "user themes" extension along with a bunch of other extensions.

You don't have to use gsettings, unless you need to. You can enable the extensions you want using gnome-shell-extension-tool. Specifically, to enable "user themes", the command you need to run is

gnome-shell-extension-tool -e user-themes

Parameter -e tells gnome-shell-extension-tool to enable the extension.

You can also disable an extension using the -d parameter instead of -e.


The easiest way is to install pm2 and then launch it in pm2. pm2 will automatically relaunch the application with the system boots or even when the application crashes.

sudo npm install pm2 -g
cd myapproot
pm2 start myapp.js


Ubuntu does not display on my laptop's screen, but does display when connected to TV

Try increasing the screen brightness. That worked for me. By default the brightness is set to zero on bootup.


Redirecting output in rc.local not working

&>> is a bashism - it won't be understood by the dash shell that is (AFAIK) still the default for /etc/rc.local (rather, it will understand it as & followed by >> i.e. background the command and then append nothing to the file).

You will need to change your command to use the POSIX form of the redirection i.e. cmd >> outfile 2>&1

/home/rootadmin/.virtualenvs/data_collection/bin/uwsgi --ini /etc/uwsgi/sites/data_collection_project.ini >> /etc/uwsgi/uwsgioutput.txt 2>&1


WiFi  is not been showing under available networks

This can happen for a couple of reasons, your router is on channel 12 or 13 with iw reg get showing the wrong country- the USA isn't allowed to use 12 or 13.  Another issue might be if your router is on 5GHz and the linux driver for your wifi card doesn't support 5GHz yet

please go wireless script info

You can copy the contents of the wireless-info.txt file and use http://paste.ubuntu.com to upload and paste the new URL in your question


A start job is running for Wait until snapd is fully seeded

Reported unresolved bug, especially for users who do not have sda or sdb: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1779948

I'd remove the snap service until it's fixed with

sudo apt autoremove --purge snapd

or change to snapd 2.33.1+18.04ubuntu2 and kernel 4.15.0-29-generic.


Installing Energia for TI MSP430 development

I don't believe it but I actually found a solution. Because as I said in the question I have searched extensively and most of the solutions was very messy and unclear I answer my question in the hope that it will help others and save them the hours I spend on this problem myself. This solution was hidden in a thread of a forum:

So in order to install Energia:

Download the binary release version from the energia site
Open the Ubuntu Software Center
Install the "Main Menu" package
From the first column select Accessories
Click New Item, name it Energia and select the file energia from the unzipped downloaded Energia binary release
Select Ok
Write Energia in Launcher and click on the Energia entry.

After that one must set up the serial comunication with the Launchpad board. From another source I manage to find a solution to solve that problem doing the following:

sudo lsusb
sudo modinfo cdc-acm
Then create a file called 71-persistent-msp430.rules in /etc/udev/rules.d/ directory
Add this line in it:

ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0660", GROUP="plugdev"

sudo adduser user plugdev

Write your own username instead of user.

sudo service udev restart

Also it may need to change the Board from Energia's toolbar (Tools and after Board).


undefined parameters in /etc/postfix/master.cf

You can get rid of the error messages by adding the following in the main.cf file for postfix:

smtpd_restriction_classes = mua_sender_restrictions, mua_client_restrictions, mua_helo_restrictions

mua_client_restrictions = permit_sasl_authenticated, reject

mua_sender_restrictions = permit_sasl_authenticated, reject

mua_helo_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_invalid_hostname, permit

Save main.cf and the postfix reload, then postfix check.  You should see nothing being printed.  That's what I did to remove the errors from my build.  It seems to be a defaults left over from the build.  I believe that you can comment those 3 lines out in the master.cf and then you can use smtpd_client_restrictions, smtpd_sender_restrictions, smtpd_recipient_restrictions, and smtpd_helo_restrictions in the main.cf for postfix.


How do I change the font on the login screen?

I will recommend the two best ways to change the default font of lightdm.
Open terminal and run the command pkexec lightdm-gtk-greeter-settings
if it doesn't work for you, you need to install it manually using the command sudo apt install lightdm-gtk-greeter-settings and after installation , run  pkexec lightdm-gtk-greeter-settings.A window will appear where you can configure the lightdm.

Another method is to change edit the conf using the dconf-editor.
Open dconf-editor and search greeterfrom the search box
.
Click on the first option that appears and configure all your lightdm settings there.
If you don't have dconf-editor installed , install it by sudo apt install dconf-editor
This is not the answer for question asked 8 years ago but for the current users who are facing this problem.


After upgrading to 12.10 usb drives fail to mount

This method worked for me:
(Its from another thread Can't open a separate usbdrive when booting from a liveusb install 12.10)

Things have changed in the current ubuntu . The BUG was they forgot to create a user under media and create permission . Hope this helps

The BUG and explanation can be found at

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

substitute USERNAME with ubuntu or any name of your choice

sudo mkdir /media/USERNAME

sudo chown USERNAME.USERNAME /media/USERNAME

or

sudo mkdir /media/$USER

sudo chown $USER.$USER /media/$USER


"Can't check signature: public key not found" while upgrading, why?

Try this:

gpg --keyserver keyserver.ubuntu.com --recv 437D05B5
apt-get update

Otherwise you might be able to use this blogpost:

  The solution
  After a bit of head scratching, it seems the simple solution is to delete all of the GPG keys in /etc/apt and re-run apt-get update.

cd /etc/apt
sudo mkdir gpgbackup
sudo mv *.gpg gpgbackup/
gpg --export -a 437D05B5 | sudo apt-key add -
sudo apt-get update

(added backing up instead of plain rm)


Package 'rubygems' has no installation candidate

rubygems is a virtual package, check the Ubuntu package archive. A virtual package is not an actual package, it has no .deb file associated with it. A group of packages that provide some generic functionalities are represented by using a virtual package so that any given package can depend on the virtual package rather than needing to know whats the actual package providing the functionalities.

In your case the virtual package is rubygems and the physical package is ruby. As ruby provides the functionalities that the virtual package rubygems indicates, you are getting the message that rubygems is replaced by ruby.


you should install it by typing sudo snap install pycharm-community --classic


What Reverse Engineering Tools Are Available for Ubuntu?

edb is a debugger for Linux that aims to be like OllyDbg (the author even says so).  It uses Qt and boost.

A bit more info here

It is available in Ubuntu's repositories in 18.04 (Bionic) and later as the edb-debugger package (not to be confused with the package edb, which is a database for emacs).


How to create deb package from Windows applications?

Yes, you can make that happen, but it would be a bit hackish. Fine for personal use, but it would never get accepted into Ubuntu proper.

I'm not sure about your level of knowledge about debian packaging, but giving a whole packaging tutorial is out of scope for this. If you need further information, the Ubuntu Packaging Guide is a good place to start, and of course there is always the Debian New Maintainer's Guide.

Essentially all you need to do is use dh_install to drop the files in the right place. So something like this in you debian/my_package_name.install file:

application-name.exe          /opt/application-name/
application-name.desktop      /usr/share/applications/


Reassign the Right button functionality of touchpad

You can use easystroke, which is a gesture recognition application.

You can specify a particular gesture and bind it to an action.


Firefox has its own DPI mode, not always plays well in a desktop environment with modified DPI, yet the solution is simple:

First go to a firefox tab and type: "about:config", next in the search bar type: "layout.css.devPixelsPerPx" now change the Value to what you like.

If the decorations or the text is blurry, you may want to use a decimal value to make firefox more aesthetic, go for ".7". Or to make it bigger to a 2 or 1.5.

My screen is 15 inches 1080p; a value of 1.3 worked fine for me. The info came from this page:

https://fedoramagazine.org/how-to-get-firefox-looking-right-on-a-high-dpi-display-and-fedora/


Ubuntu with full disk encryption - bad password after upgrade to 18.04

Got the same issue when I have upgraded my ubuntu from 17.10 to 18.04. After lot of testing I found a solution for my problem. I just changed the keyboard layout in US and typed my password in my nativ layout (azerty).
So it seems that the cryptsetup prompt is now in my nativ layout and not in US anymore. And my password was never stored in azerty layout as I thought.

Hope my solution will help you, and excuse me for my poor English.


Ubuntu livecd hangs - unable to access my laptop

Using SystemRescueCD (on a CD, rather than USB), reformatting the partition and using Ubuntu LiveCD again worked OK.


Firefox unresponsive due to lock files, how do I remove them?

Open the file manager and press Ctrl+H to see hidden files. GO into .mozilla->firefox and there should be one folder in there, possibly with a very weird name. Now, go into that folder and delete the files lock and .parentlock to allow Firefox to access its SQlite database.


How can I make sure a program is killed when VPN is running?

Options to prevent an application to run while VPN is running

There are several options to prevent running an application when VPN is running:

Combine the command to open VPN with the command to kill the application
Run a small background script to kill the application if VPN runs

Although the first option seems to be the cleanest, there are a few reasons to choose the second:

The application could very well be killed whenever VPN starts, but that would not prevent the application to run accidentally afterwards.
Since you mention you start VPN from the GUI, You would have to change the way how to start VPN, to combine it with killing the application.

So...

Below a small background script to make sure the application is not running at the same time as VPN.

How to check if VPN is running

To check if VPN is running or not, the answer checks if the string <OpenVPNserver> is present in the output of the command

route

or not. Please check if this is the case first. If not, we need to find another identifying string.

How the script works

Once per two seconds, the script checks if VPN is running by checking if the sctring <OpenVPNserver> is in the output of:

route

(Only) if so, the script checks if the application is running, with the command:

pgrep <application>

and kills it if so, with the command:

kill <pid>

The script

#!/usr/bin/env python3
import subprocess
import sys
import time

app = sys.argv[1]

def check_ifrunning():
    # check if connection is up or down
    get_routeinfo = subprocess.check_output(["route"]).decode("utf-8")
    if "<OpenVPNserver>" in get_routeinfo:
        try:
            pid = subprocess.check_output(["pgrep", app]).decode("utf-8").strip()
            subprocess.Popen(["kill", pid])
        except subprocess.CalledProcessError:
            pass

while True:
    time.sleep(2)
    check_ifrunning()

How to use

First open a terminal, run VPN like you are used to and check if the string <OpenVPNserver> occurs in the output of the command

route

If so, Copy the script above into an empty file, save it as prevent_run.py
Test- run the script with the command:

python3 /path/to/prevent_run.py <processname>

(I tested it for example with the command python3 /home/jacob/Bureaublad/prevent_run.py gedit)
If all works fine, add it to Startup Applications: Dash > Startup Applications > Add. Add the command:

python3 /path/to/prevent_run.py <processname>

Note

As usual (and like it should be), the script is extremely light weight. It add no noticeable "background noies" whatsoever.


My laptop doesn't recognize its internal disk as bootable. How do I fix this?

Great security comes with great responsibility.

Your BIOS itself simply cannot boot from an encrypted partition. What you should have done is: create a small (unencrypted) boot partition that loads the LVM and the encryption/decryption module and hands over the boot process to the encrypted encryption/decryption module which then completes the boot process.

TrueCrypt is software that completely automates this, and its sole developer is not maintaining the software any more, but it's still be best out there!

So what you have to do now is:

Make an unencrypted backup of your date (if you have any)
Read the manual of the encryption software you're going to use completely (hopefully TrueCrypt) and use the LVM manuals to create your LVs (if this is your first time using LVM).
Re-install using the procedure above


How to update system firmware on MSI machines?

This website says that you load firmware onto a USB stick and then reboot.

https://www.gamersnexus.net/guides/2772-how-to-update-bios-with-m-flash-msi-motherboards

Quoting them...

Setup & Necessary Tools

Motherboard with simple firmware flashing tools
USB storage device
The most recent version of the motherboard’s BIOS, found on the motherboard vendor’s website. Place this onto the USB key.

Step-by-Step Guide to Updating BIOS on an MSI Motherboard

It’s very easy, really:

Navigate to the motherboard vendor’s website (MSI, in this case) and find the exact board you’re using. Don’t settle for “close enough” – find the exact product.
Go to Support, then download the latest BIOS that’s relevant to you.
Boot to BIOS and navigate System Information to find the current BIOS version. Make a note in case you need to roll-back.
Navigate to M-Flash.
Select the USB device, then the file, then proceed.
Accept the prompt after review and allow the flash to continue.
DO NOT INTERRUPT THIS PROCESS. If it looks like there is no progress, be patient and walk away from it. Restarting now can damage something.
Re-apply BIOS settings that you like.


Try making a soft link like this: sudo ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 /home/user/openspades/openspades.mk/bin/libopenal.so

To find installed versions, use locate libopenal.so. If some error about a database comes, create the database with sudo updatedb


How to display line numbers with pygmentize

You can add line numbers using perl like this:

pygmentize file.py | perl -e 'print ++$i." $_" for <>'

Update (to alias the previous command):

To create an alias, just define the following bash function somewhere in your ~/.bashrc:

pyg() {
pygmentize $1 | perl -e 'print ++$i." $_" for <>'
}

Open a new terminal and call the command with pyg file.py.


Installing Ubuntu on an MDR disk - problems!

A disk that shows up as empty in the Ubuntu installer but that you know holds partitions is usually a symptom of one of two problems:

Leftover RAID data on a disk that's no longer being used for RAID. You can often get rid of such data by typing sudo dmraid -r -E /dev/sda; however, you should be 100% positive that you're not using RAID before you do this. Some computers come configured to use RAID, even for just one disk, and removing the RAID data in such situations without first disabling RAID in the firmware can cause problems.
Damage to the partition table. On an MBR disk (is that what you meant when you wrote "MDR disk"?), my FixParts program can often fix these problems, but that's not 100% guaranteed. If you've got a GPT disk or if FixParts doesn't help, you should post back with more information, such as the RESULTS.txt file created by the Boot Info Script. (You'll probably have to post this as a link.)


PPTP VPN passthrough stopped working on 18.04

Ubuntu 18.04.1 server
PPTP PassThrough started to work after adding

net.netfilter.nf_conntrack_helper = 1

and adding the module with:

modprobe ip_nat_pptp

This should fix the problem.


synaptic tries to uninstall so many packages when trying to install openssh-server

Remove these packages, as you might not have it installed from official repo. Use command below to remove it but make sure no more packages are uninstalled, like half of the system!

  sudo apt-get remove openssh-server openssh-client

Then, update you repository info with

  sudo apt-get update

And finally install needed packages with

  sudo apt-get install openssh-server openssh-client

If you get some unexpected results, post it here.
IF it doesn't help (3 commands above), then you might have something broken on your system due to installing/adding different software repositories and system is not unable to resolve dependencies. In that case, you should post here file content of  /etc/apt/sources.list  and all files from folder /etc/apt/sources.list.d/


I forgot my default keyring password, how do I get in to recover/change it?

rm /home/$USER/.local/share/keyrings/login.keyring

will remove the login keyring and ask for a new password.
Or to be a bit safer with a backup:
cd /home/$USER/.local/share/keyrings/
cp login.keyring login.keyringOLD
rm login.keyring


How to lock screen in Openbox with KDE5 screen locker


If I can, how do I install Ubuntu from Ubuntu?

You are asking an interesting questions. I'll rephrase it my own words: Is it possible to run Ubuntu's installer, which is present at Ubuntu's LiveCD, from a regular Ubuntu system (installed to HDD)?

The GUI installer you found on the LiveCD is packaged as ubiquity. It's not clear, what will happen if you try to install and run this from your your HD install. While it might work, this does not seem supported or tested.

It's well known, that Debian-based systems such as Ubuntu can be installed in a chroot environment. Chroot is a tool, which can treat any directory as the root directory "/". You can easily create a chroot environment on your external HDD. If you want to boot this chroot Ubuntu, you have to install a kernel and a boot loader. While this is a known and tested method for Debian (and I have personally done this with Ubuntu), the tutorials on the web are outdated. Hence, this is only an option if you are familiar with grub and the Linux boot process.

Actual Answer: While your question is reasonable, it does not seem supported by Ubuntu or any other modern operating system. We have become so used to install OSs from a boot CD or USB, that other methods were neglected.

You didn't specify what the purpose of installing Ubuntu onto the external HDD is. If you leave this external HDD connected as it is, your computer will probably never boot it, because it prefers your internal HDD. If you change the BIOS settings, connect the external HDD to a different computer, or anything the like, then this (currently) external HDD can become the role of the boot HDD. Now, here comes the catch: It takes some guesswork to know now, whether and how this HDD will ever become bootable. The PC BIOS is a horrible bootloader, not designed for such things. That's probably why your idea is not supported through easy installation vectors such as Ubuntu's GUI installer.


Any chance an exception could be made for a LibreOffice 3.4 update -- so Natty can get Global Menus?

To install Global Menu support for LibreOffice.

Install lo-menubar from Ubuntu Software Centre

or in Terminal use the command:

sudo apt-get install lo-menubar


Turned out I needed to remove it from dpkg:

dpkg -r popcorn-time

And that took care of it for me.  Thanks again for the help and suggestions everyone!


Package 'netplan' has no installation candidate

Try this and see if you find it more than likely missing the .io on the end in the package name.
root@zeus-H370M-DS3H:~# apt-cache search netplan
libnetplan-dev - Development files for netplan's libnetplan runtime library
libnetplan0 - YAML network configuration abstraction runtime library
netplan.io - YAML network configuration abstraction for various backends


How do I get my Roccat Lua mouse fully working on Ubuntu 14.04 64-bit?

The most important thing first: Don't ever run the tools as root! Linux is not Windows, even if it's Ubuntu.

Other things you need to know:

After adding yourself to group roccat you need to at least relogin for the new membership to get applied.

The device needs a replug, so that udev can apply the newly installed rules.

Now do this:

Delete the files that have been created with the wrong rights:

sudo rm -rf /var/lib/roccat

Rebuild the folder with

sudo mkdir /var/lib/roccat
sudo chown root:roccat /var/lib/roccat
sudo chmod 2770 /var/lib/roccat

Then it should work.


How do I partition Windows 10 to dual-boot with Ubuntu 14.04?

EDIT Also you probably want to install 16.04 (the most recent Long-Term-Support release) not 14.04 which is almost 3 years old now.

Firstly make sure you have your a Windows 10 disk or "repair" option in your PC so that you can fix windows in the even that something goes wrong. Also backup any data you can't afford to lose before you ever do any disk operations.

Make a Live CD or USB and boot using that. Select "Try Ubuntu" and run GParted as you suggest and resize your NTFS partition to be smaller by the amount you want Ubuntu to use. The NTFS resize tools have been used a lot and I resize my drives with them often. As long as you don't interrupt the process it will resize it. Also take note that you should "shrink" it from the right side leaving you free space at the "end" of the disk.

What usually messes people up is doing multiple things they don't understand and then they don't know what failed. After having just done the simple resize you now have "unallocated" or "free" space.

At this point you can reboot and you should still have access to Windows since all you have done is created free space on your drive and not changed the layout of your disk partitions.

Once you have verified everything is still working as expected boot the live CD or USB back and select the "Install Ubuntu" option. When it gets to the step for selecting partitions you should have an option allowing you to use the free space you created earlier. Ubuntu will create 2 partitions within this free space.

When the Ubuntu installer is finished it will ask you to install a new manager called "grub" which you should select Yes and allow. This will find your Windows 10 installation and put it into a menu that you will see when the computer is booting up - the "grub" menu. If you do not install grub Windows 10 will boot by default and not provide the option to select Linux.


Unallocated space does not come under /dev, thus can't use in other partitions

Okay so how I solved this-
1.Swapoff
2.Resized sda4 (as mentioned by a user) and filled the unallocated space
3.then from the live cd extended sda6

Thanks to everyone who helped! :)


I solved the problem by disabling edge smoothing in the Appearance options, using LXAppearance 0.5.5 (Start → Preferences → Appearance). Simple, but it works.


How do I update to the latest version of SASS?

What we ended up doing was the following:

First, we installed rvm using the rails ready one-liner:

wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

Selecting option 2 (RVM) when asked.

Then, we did source ~/.bashrc

Then we did a gem install sass --pre (no sudo).


How do I verify a partition is encrypted?

You can boot a live CD and try almost any data recovery tool, such as testdisk. When you run the data recovery tool it will identify all sorts of files. Open any of them and you will see random data.


control Youtube in Google Chrome with bluetooth headphone buttons

In windows, (great help, I know) SteamKeys recognises the buttons on my Sony MDR-ZX770BN headphones as: Media Next Track, and Media Play/Pause.

https://imgur.com/a/LYDwq


Ok you use a USB drive for the installation, than look at this:

http://blog.husainad.com/installing-ubuntu-13-04-mouse-touchpad-not-working/

(From "Installing Ubuntu 13.04" till the end)

UNetbootin could be the reason.

I don't think that it is a USB port problem because it works in the live mode. It must be an install problem.


Sending sound only through HDMI (kubuntu)

I'm a Kubuntu user too and since I connect to my TV using HDMI to watch movies I had to deal with transporting the sound from my PC to my TV only, so what I've done is this (and has worked out so I can hear sound coming from my TV only).

Right click on the volume icon in the System Tray.
Opened "Audio Setup" from Kmix menu.
Clicked on the "Audio Hardware Setup" tab.
Selected the best option from the Profile drop-down list.

In my case I selected the Digital Stereo (HDMI) output or the Digital Stereo (HDMI) output + Analog Stereo Input, clicked on Apply and the problem was solved.


fdupes
Searches  the  given  path for duplicate files. Such files are found by
comparing file sizes and MD5 signatures,  followed  by  a  byte-by-byte
comparison.

To install
sudo apt-get install fdupes

Here is the Ubuntu Manpage


Run ps afx|grep rsyslog in a different console, then:

If there are traces of rsyslogd running, probably in <defunct> state, this is a bug in the upstart scripts incompatibility which has been fixed. Simply stop rsyslog, upgrade to the recent version (dpkg -r --ignore-depends rsyslog rsyslog && aptitude update && aptitude upgrade rsyslog).
If there are no traces of rsyslogd running, and the only related process that hangs is start rsyslog, you need to reboot (and then perhaps continue with step 1).


@https://askubuntu.com/users/730868/neeraj-bhatt
I think you should remove old linux kernels because your /boot drive is out of space.

Follow the steps as below :-

1) boot to grub and click on “Advanced options”
2) Select a previous kernel (should boot fine)
3) login and enter command
4) $ df
(See if your /boot directory is 100% used)
5) Remove old linux kernels
6) $ sudo apt-get autoremove


BCM43142 WiFi not working in Ubuntu 14.04.2

The package bcmwl-kernel-source is correct for your device. If you still have the install DVD or USB, then you can find it and its prerequisite there. Navigate to pool > restricted > b > bcmwl and drag and drop the deb file to your desktop. Now navigate to pool > main > d > dkms and drag and drop dkms to your desktop. Now install both with:

cd ~/Desktop
sudo dpkg -i *.deb

Load the driver:

sudo modprobe wl

Your wireless should now be working.


Is an NFS export being used by an external system?

There is no direct NFS utils (provided by nfs-utils) to list the clients connected to NFS server (mounts exported directories).

However, if NFSv4 is used, on the NFS server side clients can easily be identified using ss or netstat because it uses only 1 port 2049 for both UDP and TCP:

Examples

netstat -naptule | grep :2049

root@n54l:~# exportfs -rav
exporting 192.168.1.0/24:/srv/oops

root@n54l:~# netstat -naptule | grep :2049
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      0          32620      -
tcp        0      0 192.168.1.123:2049      192.168.1.150:730       ESTABLISHED 0          94689      -
tcp6       0      0 :::2049                 :::*                    LISTEN      0          32631      -

ss -tuna | grep :2049

root@n54l:~# ss -tuna | grep :2049
tcp   LISTEN     0      64                0.0.0.0:2049            0.0.0.0:*
tcp   ESTAB      0      0           192.168.1.123:2049      192.168.1.150:730
tcp   LISTEN     0      64                   [::]:2049               [::]:*

We can see the NFS server 192.168.1.123, there was 1 client 192.168.1.150 connected to it.

Combination of either command with text processing (grep, cut, awk, sed, etc.) can assemble a shell script to achieve what you want at ease.

  NOTE: nfsstat and nfsiostat (client side) may provide some insight but the results/stats are not direct.


Upgrade timeline of LTS to LTS and non LTS to LTS

Every release has it's schedule published a few days into the development cycle, eg. Ubuntu 20.04's release schedule https://wiki.ubuntu.com/FocalFossa/ReleaseSchedule was created on 2019-February-19, though was just a place holder until 2019-October-17 when development started.  The LTS to LTS occur after the 20.04.1 in all ML & official documentation, without a more precise definition of what after means (but do you need it?)
After a release reaches EOL the archive.ubuntu.com will be moved to old-releases.ubuntu.com. Again the word is after, for 17.04 this occurred the following day-week (mirrors of course don't all clear out the same time..) but for most releases there is a far longer delay (17.04 was unusually quick).


Create a file: /etc/apt/apt.conf.d/99proxy and in this file insert the following:

Acquire::http::Proxy {
    your.local.repository DIRECT;
};

This tells apt to use a direct connection (so not via proxy) to access your local repository.

Change your.local.repository to the correct location of your local repository.


installing xubuntu on eee pc 900a using unetbootin

If you are making bootable USB using windows, try using Universal USB Installer. For me it worked better than uNetbootin. And if you are making bootable USB using any Ubuntu machine, you can use Startup Disk Creator.


Mysql installation problems ubuntu Precise

Here's a step by step procedure to install mysql in Ubuntu 12.04. The repository is given in question by OP. Here's how to add that repository

sudo add-apt-repository 'deb http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu precise main'

The question is marked solved so I assume It's a successful solution.


Everything has disappeared apart from the mouse pointer and desktop background

I think You should first try to repair unity or anyother desktop environment you have (like gnome or KDE).
If you are using unity then first open the terminal by pressing ctrl-alt-t
and then  type
unity-reset
this may reset the unity desktop environment.
IF the problem persist the uninstall unity by typing (in this press enter after each line)(this process requires internet)

sudo apt-get remove compizconfig-settings-manager
sudo apt-get remove compiz-fusion-plugins-extra
sudo apt-get remove compiz-plugins-extra
sudo apt-get purge compiz

and then reinstall unity by typing

sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop-2d
sudo apt-get install compizconfig-settings-manager
sudo apt-get install xserver-xgl
sudo apt-get install emerald
sudo apt-get install compiz-fusion-plugins-extra
sudo apt-get install git compiz-plugins-extra
sudo apt-get install compiz-plugins-extra
sudo apt-get install unity

If you are using gnome then reset gnome

And do the same if you are using KDE
(you may search the internet how to reinstall gnome or KDE)

Then restart it


vi .bashrc:

Original:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

change it to ...

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u:\w\$ '
fi

(basically remove the "@\h"  twice.

Make a backup of .bashrc with

cp .bashrc .bashrc.old

before editing.


While this is technically possible, it would be very unstable. When you install Ubuntu, one of the steps is configuring itself for your particular hardware. Therefore, it would be configured to run on your virtual machine, not your server. It would be possible to run Ubuntu in an identical virtual machine in your server, but that would require keyboard and mouse access.

In short, it is possible, but very unstable. As a result, it's probably not what you want.


Determining size of the partition when using Ubuntu Installer

I think you are answering your question when you say:

  Is there a quick and easy way to install Ubuntu on a partition of exactly this size,   i.e. without having to choose the "Something else" option at the beginning of the installer procedure?

The quick an easy way is to select the options given to you. The other way is to use the option 'Something else'.

About the 32GB, most users trying ubuntu don't want to have the bare minimal use of hard drive for it, install a few applications and games and find out that they just ran out of space. I think Canonical is trying to give you an useful partition you can actually live with for a while before running out of space.

Finally, there are great guides for installing using the "Something else" and once you do it once you will find it quick, easy and better since you have more control over what is going on.


If you are on an Ubuntu desktop, use System Settings -> Language Support.

Otherwise you may want to study a general guide on setting environment variables persistently in Ubuntu.


What is the frame field for in ifconfig?

This shows number of frame errors.

When connection is good, it always shows 0.

Frame errors mean CRC failures on receipt of a frame. The root cause of this could be a bad cable, or a bad interface on either the machine or the switch. Try replacing the cable, then moving to another port on the switch.