Apache Configuration file 000-default.conf not working

Apache ignores sites-available until you enable the site (in which case it symlinks it in sites-enabled).

Run the following commands:

sudo a2dissite 000-default
sudo a2ensite 000-default
sudo systemctl restart apache2

This will disable the "Default" site, enable the "Default" site, and then the restart of Apache will refresh the configuration and should then use the updated docroot accordingly.  Note there may be other permissions issues not discussed here; you would need to open a new question for that.


using pipe with bundle show and gnome-open

You want to pass the output of the bundle command as an argument to gnome-open, not as input to it. Try this instead:

gnome-open $(bundle show jquery-rails)


Firefox Developer Edition ppa not working

Try via Ubuntu Make

sudo apt-get update
sudo apt install ubuntu-make
umake web firefox-dev

src: http://sourcedigit.com/20695-how-to-install-firefox-developer-edition-on-ubuntu-16-04/


Ubuntu 13.04 Clean install Pandora does not work

I had the same issue as you (except it was working on 13.04 for a while, until something changed). The solution for me was luckily simple:

sudo apt-get install chromium-codecs-ffmpeg-extra

This will replace the chromium-codecs-ffmpeg package with the above. Hope it works for you, enjoy Pandora! :)


Try this extension (works well with LibreOffice on Gnome-Shell/Quantal) :

  MultiSave enables you to save simultaneoulsly a document in the
  OpenDocument, MS Office and/or PDF formats as you choose.

MultiFormatSave is a new updated fork of MultiSave designed to work better with recent revisions of Libreoffice:

  MultiFormatSave enables you to save simultaneously a document in the
  OpenDocument, MS Office and/or PDF formats as you choose for Writer,
  Calc or Impress

  Forked from the starXpert MultiSave-extension

Make sure to choose the appropriate release for your LibreOffice version, e.g. 1.3.2 for LO 3.5 and 3.6.


Ubuntu cannot pair with bluetooth keyboard

Apparently, some time in 2008, bluez had a major overhaul, but the development team forgot to create any documentation on how to use the new version.

According to this site, where you can find many more details on what happened and why,

  The developers of bluez, once the nice Bluetooth package everyone could live with, decided it was time for a major overhaul: they merged the packages bluez-libs and bluez-utils and then some. And with ‘and then some’ meaning completely changing the way Bluetooth devices are configured and thereby breaking backwards compatibility.

An update on this article confirms that the same problem exists in 2016. No one knows how to use the new bluez.

However, there are a few workarounds. The author of that article has created a workaround that may or may not work for you, especially since it is for Ubuntu 9.04. You can try your luck though, here: http://www.bennybottema.com/2010/01/28/how-to-connect-a-bluetooth-keyboard-in-ubuntu-9-04-jaunty-and-9-10-karmic-workaround/

Unfortunately, it seems like there is no known fix for this. No one can seem to find anything out about bluez. From what I've researched on this, there is still no documentation available, nor any answers to the keyboard pairing problem, which seems to be fairly common. I think your best best it to try the workaround I linked and see if it works.


Try webmin control panel for GUI management of the whole system such as web server and also package installation


That message means that dbus rejected an error message (org.freedesktop.DBus.Error.UnknownMethod) pulseaudio tried to send to bluetoothd, probably because bluetoothd called an unknown method on pulseaudio's interface.

The strange thing is that error replies should be allowed (you should have <allow send_requested_reply="true" send_type="error"/> in /etc/dbus-1/system.conf. I'm not sure if requested_reply="0" in your log indicates that pulseaudio does not declare the error message as a reply. That would be a bug in pulseaudio of course.


There should be no problem. The one from repository will be installed to default location. The one from SVN will need to be compiled, and then you can copy the binaries/other files to any location manually or using make install (if available). So compile the one from SVN and install(copy) it to ~/bin or any location other than where the one from repo installs and should be good to go.


Which single command can I have for Ubuntu maintenance?

We can have

sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y

update - updates the list of packages but do not install
upgrade - install new versions of packages if new versions are available
full-upgrade - performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole (fixing bad dependencies then)
autoremove, autoclean and clean - clean old packages which are not needed any more
option -y does not request for permission on every step


Since your files could be Large, the cp takes non-zero time. During this time, you probably miss notifications. Try tossing all the cp commands into the background by appending a & to each. That will get you back to the inotifywait quicker.

Also, you could eliminate a bunch of calls to grep by doing:

    j=${i##*.}
    case "$j" in
        jpg) cp $i ../images/ & ;;
        mp4) cp $i ../videos/ & ;;
        mp3) cp $i ../audio/ & ;;
        *) cp $i ../other/& ;;
    esac

Although I don't see why you want to keep a copy of each file both directories, why not use mv instead of cp?

@zpawwn: On further man inotifywait reading, I found --monitor, so, your script should be:

cd `dirname $0`/watch
inotifywait -e moved_to ../watch --format "%f" --monitor | while read FILE
do
    j="${FILE##*.}"
        case "$j" in
            jpg) mv "$FILE" ../images/ & ;;
            mp4) mv "$FILE" ../videos/ & ;;
            mp3) mv "$FILE" ../audio/ & ;;
            *) mv "$FILE" ../other/& ;;
        esac
 done

Let inotifywait manage the file event queueing, and spit out filenames as it notices them. The old way had inotifywait finding ONE new file and exiting, letting your cp stuff run, then restart watching. The other files (that arrived at the same time) are no longer new (they were there when the 2nd inotifywait started).


internal microphone not working in viber on ubuntu 15.10

I found the solution:

installed GNOME ALSA Mixer through software center.

opened it and there was column for "internal".

in that column , I dragged the slide bar to the left (so that it was no longer orange in my case).

now its working fine in both skype and viber.


How to set up an old laptop as a wireless terminal to the desktop

You might want to have a look at the Linux Terminal Server Project for "Thin Client" type solution: http://www.ltsp.org/


Adobe Reader (acroread) 64 bit looks bad

Seems the same issue as with Skype. See Fix Skypes Theme in 64 Bit.

  Skype Uses Clearlooks theme in 64 Bit Ubuntu instead of the selected system theme. Skype is a 32 Bit application and the GTK2 theme engines are installed for 64bit not for 32 Bit application. That is why Skype looks ugly in 64 Bit Ubuntu.
  To fix this, you need to install the 32bit Murrine and Pixmap GTK2 engines. Run the commands given below.

sudo apt-get install gtk2-engines-murrine:i386
sudo apt-get install gtk2-engines-pixbuf:i386

Fixed the problem for me (14.04, 64 bit)


mysterious files and possible virus on ubuntu 12.04.2 server

It might not be the worst idea to have a look at the Rootkit Hunter project.

rkhunter can be installed from the repos.


Can't delete a file with nautilus on 12.04 from desktop

There is not normally a delete in the Nautilus menu.  You have to activate delete by going into nautilus edit->preferences->behaviour.


My Lubuntu 16.04 system randomly doesn't turns on

Ok, I just got with something that made it work it out.

Just displayed the GRUB. In the /etc/default/grub changed the value of GRUB_CMDLINE_LINUX_DEFAULT to empty and ran sudo update-grub

I don't have anymore quiet booting, but runs every single time


The description of you problem is imho a little bit confusing...
For your information I use Ubuntu every day and I do not have any problems with my wifi... Windows 8 and Java ???
If I understand well enough your problem you want to remove the dual boot...
To do that:

boot from the windows cd
then you will have the possibility to open a dos prompt
start with this command:

  bootrec.exe /FixMbr
  reboot and check if you can boot windows...
  if not:

  bootrec.exe /FixBoot

reboot and check if you can boot windows...
if not:

  bootrec.exe /RebuildBcd

reboot and check if you can boot windows...

That should do the trick... If it is successful then you can get rid of the ubuntu partition (from the windows disk manager).


watchdog daemon is not active after reboot in 16.04

File /lib/systemd/system/watchdog.service has no [Install] section. Workaround by copying it into /etc/systemd/system and modifying as needed.


What exactly is "Ubuntu Desktop Edition" safe mode?

Safe mode is supposed to load only the default video driver (VESA/FB) in order to bypass any vga-related problems.
In your case, your video driver couldn't probably work with Compiz, so you could either go to 'safe mode' (and just load the plain video driver with no support for Compiz) or uninstall the package.


@echo off

Since shell scripts don't echo commands by default, an equivalent is unnecessary.

if exist %SYSTEMROOT%\py.exe (
   cmd /k C:\Windows\py.exe -3.5 -m pip install --upgrade -r  Requirements.txt
    exit
)

The py launcher is not used on Linux systems. Instead, call pip3. The equivalent of the system-installed pip3 (i.e., installed using the  package manager) would be /usr/bin/pip3:

if [ -x /usr/bin/pip3 ]
then
    /usr/bin/pip3 install --upgrade -r  Requirements.txt
    exit
fi

However, it might be better to use any available pip3:

if command -v pip3 > /dev/null
then
    pip3 install --upgrade -r  Requirements.txt
    exit
fi

command -v can be used to check if a program is in the PATH (and it prints the path to that program, which we discard using > /dev/null). You could also check for python3 and run python3 -m pip.

python --version > NUL 2>&1
if %ERRORLEVEL% NEQ 0 goto nopython

cmd /k python -m pip install --upgrade -r requirements.txt
goto end

:nopython
echo ERROR: Git has either not been installed or not been added to your PATH

:end
pause

We don't have goto in shell scripts.

An equivalent would be something like:

python --version 2>&1 > /dev/null    # Note the order of redirections
if [ $? != 0 ]    # $? is like ERRORLEVEL
then
    echo ERROR: Git has either not been installed or not been added to your PATH
else
    python -m pip install --upgrade -r requirements.txt
fi

Which would be more readable, IMO, as:

if python --version 2>&1 > /dev/null
then
    python -m pip install --upgrade -r requirements.txt
else
    echo ERROR: Git has either not been installed or not been added to your PATH
fi

Side note: Git has not been installed? O.o


Why is Ubuntu's grub2 menu is made the default grub menu? Is it possible to change it?

You installed Fedora and Kali Linux on the 2 TB disk, sdb, and you installed their bootloaders to sdb too. If you had installed their bootloaders to sda,they would have been used as default bootloaders, because the computer boots from sda by default.

It is possible to install a bootloader afterwards, 'repair grub'. See these links,

help.ubuntu.com/community/Grub2/Installing

help.ubuntu.com/community/Boot-Repair

The method you used with

sudo update-grub

is a good method, and should also be used, when 'the other' linux operating systems have upgraded (new) kernels. Otherwise these new kernels will not be available via the grub menu.


In a terminal window, please run the following:

sudo dpkg --force-remove-reinstreq -P myspell-he

That should force the removal of the myspell-he package.


Running apt-get install updated unrelated packages and is causing issues

The "not enough space on boot" thing is an independent issue, which seems to be a constant problem for people who have disc encryption on. It seems to have been reported as a bug report for a year now but is still not fixed for some reason. You can fix it with

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

in the console -- this looks for which kernel packages you've got installed and then purges them all apart from the one you're currently running.


How do I run NetBeans from the terminal?

Assuming you downloaded the 7.4 version

If you installed netbeans from .sh installer using sudo then the default command to run netbeans is :

/bin/sh "/usr/local/netbeans-7.4/bin/netbeans"

if you installed netbeans without sudo then the default command is :

~/netbeans-7.4/bin/netbeans


trouble installing pygame on ubuntu 16.04 LTS

To install PyGame for Python 3.x on Ubuntu 16.04 (default python3 is version 3.5.1) open the terminal and type:
sudo apt install python3-setuptools
sudo easy_install3 pip
python3 -m pip install --user pygame

The above commands also work on Ubuntu 18.04.
To install PyGame for Python 3.x on Ubuntu 19.04 and later open the terminal and type:
sudo apt install python3-pygame

To install PyGame for Python 3.x on Ubuntu 18.10 open the terminal and type:
sudo nano /etc/apt/sources.list

Add this line to sources.list.
deb http://archive.ubuntu.com/ubuntu/ cosmic-proposed universe
Save sources.list with the keyboard combination Ctrl+O and press Enter and exit with Ctrl+X
Update the list of available software and install python3-pygame.
sudo apt update
sudo apt install python3-pygame

To install PyGame for Python 2.x in Ubuntu 20.04 and earlier open the terminal and type:
 sudo apt install python-pygame


cinnamon change name of workspaces by bash

I tried changing the names with your strategy and it worked (taking effect after logging out and back in).

I think your problem is not a failure to change the names, but that your workspace settings are set to not showing the labels when switching workspaces.

In cinnamon, try the following:

go to Settings > Workspaces and Enable workspace OSD.


VGA splitter doesn't show two separate screens on ubuntu MATE 15.04

+1 for all the research effort, however...

Hate to break it to you, but the fact is it's working as intended.

A splitter is just that - a splitter. Nothing more, nothing less.

All it will do for you is duplicate the signal.

A quote from the link you provided:

  The VS92A is a video splitter that not only duplicates the video
  signal from any VGA, XGA, SVGA, UXGA, or multisync monitor to two
  outputs, but also boosts the video signal over a distance of up to 30
  meters


Unable to install Xubuntu 16.04: "not a typewriter"

Well, looks like I finally fixed it. Instead of 16.04 iso I downloaded 14.04 and it worked. The live usb started perfectly and I installed xubuntu successfully.


ubuntu how to mount an ntfs with me as owner

A. sudo mkdir /media/ntfsPartition - this will create a folder in your media directory, you can add any name you want;

B. sudo blkid - find the UUID of the ntfs partition you want to mount;

C. sudo gedit /etc/fstab - add a new line with your ntfs partition you wish to mount by writing a new line on bottom (ex: should look like this)

#ntfs_partition
UUID=xxxxxxxxxxxxxxxx /media/ntfsPartition ntfs defauls,uid=1000,gid=1000,noatime 0 0

(before point D, check if the uid and gid is 1000 by typing in terminal id)

D. Save the file;

E. sudo mount -a - this will mount your ntfs partition;

F. Done

*Testing and using my ntfs partitions in this way on Ubuntu 14.04.

For older versions, check this - How to automount NTFS partitions?


Chinese Pinyin keyboard layout in Ubuntu 20.04 is based on German layout

Open /usr/share/ibus/component/libpinyin.xml for editing. Then change
<layout>default</layout>

to
<layout>us</layout>

for the libpinyin engine.


Make an Ubuntu virtual server reachable from Internet

There are two ways to approach this, depending on how you've configured networking for the VM.  either way, you have to port forward on the router to internal somewhere.

If your networking is set up to be 'NAT', then you set up Port Forwarding on your network at the border router to point to your host machine/computer.  You then edit the VirtualBox networking of NAT to add port forwards where necessary.

If your networking is set up to be 'Bridged Network', then you set up Port Forwarding on your network at the border router to point to the IP address assigned to your VM by the router.

Several concerns.  Security concerns are bold, other ones are italic.

Port-forwarding Port 22 is not the best thing to do - you will have brute-forcers and other attacks trying to breach the machine.
Not all ISPs permit you to run web servers.  You may have blocks put in place for this going forward.
Your router may actually listen on port 80 or 443 for administration connections.  This means your router is using those ports and you won't be permitted to use them.  Also means you may be exposing your router administration ports to the net which is even worse.
You will not be able to use any URL or hostname from the Outside to connect to your system, without getting additional things from Dynamic DNS providers, and doing proper configuration. You will need to set up Dynamic DNS on your router with a dynamic DNS service to provide a domain name that 'updates' based on your router's current IP address (or other equivalent discovery system), and then the internet would be able to reach your site (provided port forwarding is done correctly, and your web server on the VM is configured correctly.)


Ubuntu 18.04 stuck on verbose screen on startup

After logging into the console look edit this file:

/usr/share/pyshared/lsb_release.py

And around line 41 you will see:

RELEASES_ORDER.sort(key=lambda n: float(n[0]))

Change it to:

RELEASES_ORDER.sort(key=lambda n: float(n[0].split()[0]))

Source: lsb_release - could not convert string to float: '8.04 LTS'


Windows 8.1 and Ubuntu dual boot, can't choose windows 8.1

I faced out the same issue 2 months ago. These following questions help me so much.

Dual boot Ubuntu and Windows 8 - no operating system found

and

Restore backup of WinEFI or UEFI (not sure) that boot-repair made

Good luck.


How to block all USB storage devices in Ubuntu

I found in Ubuntu 16.04, some pendrives trigger pickup of the uas.ko kernel driver (USB Attached SCSI driver). And a kernel driver dependency of uas.ko is usb_storage.ko.

Hence, eventhough I had blacklist usb_storage in /etc/modprobe.d/blacklist.conf, usb_storage.ko still got loaded by virtue of dependency to uas.ko

After placing in:

blacklist uas
blacklist usb_storage

into /etc/modprobe.d/blacklist.conf, access to those pendrives no longer works (uas.ko & usb_storage.ko no longer loads) in a running system.

Bear in mind to enforce this during kernel boot, one would also need to make some grub/kernel line modifications of some similar sort in link.


apt-get --force-yes: How to suppress further questions

Try:

export DEBIAN_FRONTEND=noninteractive
apt-get -y install package1 package2


How to find where an app is installed on Ubuntu?

First, my app was finally found at:

/snap/intellij-idea-community/177/bin/idea.sh

How?

I tried "locate" command, but I didn't know what exactly is the command for starting IntelliJ (the sidebar does not provide it!!! Shame on your Ubuntu Desktop makers. This is basic...). Anyway trying to locate anything using "locate" returns thousands of answers...

So, I thought... why not just run it, and check in the task-manager ("top") and see the command line. Yet, by default top does not show command lines, you need to add the "c" command line, as follows:

top c

Which lists the running apps + the command that invoked them. And so, very easily I was able to see exactly how an app was invoked, and be able to sudo run it :)

And, yes I know smoking gets you cancer. I still want to SUDO, OKAY ?


Error when running the command export PATH=/nsm/bro/bin:$PATH

Your first command export PATH=/nsm/bro/bin:$PATH is valid in theory, although it's not recommended to prepend to the path - you should append (add to the end) instead.

Have you checked that /nsm/bro/bin exists and contains the files you want to run?

Also, the command would only affect the current shell session; the PATH will be unaffected in any other shell (so when you open a new terminal the PATH will not include your addition).

root@ubuntu:/home/eng-it/bro-2.2# ~/.profile
bash: /root/.profile: Permission denied

This occurs because you are trying to run a file /root/.profile which either does not exist or has no execute permission.

If you are root, then the path ~/.profile doesn't lead to your .profile, because ~ expansion is done in reference to the current user. Switch to your normal user and then do

nano ~/.profile

And then add the lines you want, save and exit.

This command seems valid (although not advisable)

root@ubuntu:/home/eng-it/bro-2.2# sudo su -c "echo 'PATH=/opt/bro2/bin:$PATH'>>/etc/profile"

sudo su -c is redundant since you are already root (why are you root? You should avoid this unless absolutely necessary). However, since you installed the program at /nsm/bro according to your ./configure prefix flag, I don't see why adding /opt/bro2/bin to the PATH would help.

Even if that path is correct, you need to log out and log back in for changes made in .profile or /etc/profile to take effect. To source them instantly, you can start a login shell by typing bash -l, or you can source the file you edited source /etc/profile

However, it is not recommended to add things to /etc/profile - you should make a file in /etc/profile.d, or specify the variable locally for your user in ~/.profile.

Assuming the files you want to run are actually in /nsm/bro/bin, as a normal user (NOT root) You could do

echo 'PATH=$PATH:/nsm/bro/bin' >> ~/.profile

or if you really want to set it globally

sudo bash -c 'echo 'PATH=$PATH:/nsm/bro/bin' > /etc/profile.d/path.sh'

and then log out and log back in.


Which method should I choose to install GNOME?

There is a better and simple way available to install gnome-desktop using tasksel.
Tasksel is a debian tool to install multiple related packages as a coordinated task. You will get many such tasks like lamp-server etc which can be installed in just one click.

Here's how to do that for gnome-desktop:

sudo apt-get install tasksel
sudo apt-get update

(Updating cache is necessary because you may get an error like this if you don't:
    tasksel: aptitude failed (100)

Then

sudo tasksel

Select the Task Ubuntu GNOME desktop using spacebar and click OK.

Ubuntu GNOME desktop will get installed.

One more thing: you may get the error tasksel: aptitude failed (100) again(it is a bug in tasksel for a long time) so just restart the system.

You will get the desktop environment selection menu on login panel:

GNOME Default
GNOME Classic
Ubuntu

Select the one you want, Enjoy.

hope this helps :)


Unable to set Chrome as the default browser; what else can I try?

Use sudo apt-get install chromium-browser and install chrominum browser. AFAIK, it is same as chrome and should work without any problem.


Video is not running in my Ubuntu 14.04 LTS

you can download VLC media player from the store, or download ubuntu restricted extras (codecs for the default media player).


How can I install MS Office 2013 on my ubuntu 16.04 laptop?

WPS Office looks just like MS Office. And it works fine in Ubuntu.

Get the deb package from here: http://wps-community.org/. Then open a Terminal window and type: sudo apt-get install gdebi. After gdebi is installed, close the Terminal, right-click on wps office deb file and choose open with gdebi. Wait for the installation to finish and that's it. And yes, it is free for linux, despite of what some 'wiseshots' may think.


Systemctl service timed out during start

Set the Type of your service script either to simple or oneshot. Depending on the behavior of the shell script that is started.

if the shell script runs an endless loop and does not exit, set Type to simple
otherwise set Type to oneshot

After you have made your changes reload the configuration with systemctl daemon-reload and start your service.


Permission denied when copying files from OSX backup disc

JonasCz's answer but also have the package hfsprogs installed before trying to access OS X filesystem

sudo apt-get install hfsprogs
gksudo nautilus


Ubuntu 12.03 does not exist. A new version of Ubuntu is usually released every 6 months, in April (*.04) and in October (*.10). The closest version would be Ubuntu 12.04.5 LTS (Precise Pangolin), and it can be downloaded from here.

Another interesting thing to note is that since the version number is based on the year and month of release, when the target deadline can't be met, the release date might be pushed back slightly later, as was the case with Ubuntu 6.06 LTS (Dapper Drake).


On command line (Terminal), try writing

xgamma -gamma 0.3

You should see a very noticeable difference. Experiment with different values. 1.0 is normal value. Setting a lower gamma will increase the contrast of bright values (decrease white washing), and setting a higher gamma will increase the contrast of dark values (but increase white washing).


This will print all:

awk '{print $0}'

And to make this long enough: this will print columns 3 to 6:

awk -v f=3 -v t=6 '{for(i=f;i<=t;i++) printf("%s%s",$i,(i==t)?"\n":OFS)}'

OFS is a built-in variable (there are 8: FS, OFS, RS, ORS, NR, NF, FILENAME, FNR) and is the output field seperator (more here).


Wine and .bat file - can ony run from a different directory

I would run it like this, assuming the POWER PREP II folder is in Program Files:

wine start /d "C:\\Program Files\\POWER PREP II" launch.bat

This would first set the current folder to  C:\Program Files\POWER PREP II followed by executing the launch.bat file.

There is an excellent example in How to install and configure Wine?


What is the meaning of UFW BLOCK and should I be worried about it?

Based on the comments stated and such, other than the UFW BLOCK issue which is explained elsewhere, it looks like your application stops responding because of some type of Denial of Service attack - some request is getting passed to Node that is causing it to eat all the CPU and freeze up.  You'll need to start tracking your NodeJS logs and harden your application - it's going to be something related to your application or a NodeJS exploit that is being successfully used on your app.


Can I get copies of Ubuntu 13.04 on CD's to give our Free Software Club members?

If you mean Ubuntu Desktop go to Download Ubuntu Desktop and burn it to CD.

For Ubuntu Server got to Download Ubuntu Server


Boot hangs after installing the latest driver from PPA and Ctrl+Alt+F1 keyboard shortcut doesn't work

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.
The timing when to press the left Shift key can be tricky, so sometimes if you miss it you need to try it again. If that doesn't work try the answers to I can't get the GRUB menu to show up during boot.

From the first purple GNU GRUB screen select Advanced options for Ubuntu with the ↑ and ↓ keys and press Enter. You will then be prompted by a menu that looks something like this:

Press the down arrow key until you select the second entry from the top (the one with the recovery mode in the description) and then press Enter.
Now you should see this recovery menu:

Using the arrow keys scroll down to network (the third entry from the bottom in the Recovery Menu) and then press Enter.

Using the arrow keys scroll down to root and then press Enter twice.
You should now see a root prompt, something like this:
 root@ubuntu:~#

At this stage you should have a read-only filesystem. You have to remount it with write permissions:
 mount -o rw,remount /

Uninstall the Nvidia driver.
 apt-get remove nvidia-graphics-drivers-*
 add-apt-repository --remove ppa:graphics-drivers/ppa
 apt-get update
 reboot

After you reboot the laptop, check if it is running properly. Then open the terminal and run this command to identify the right proprietary graphics driver from the default Ubuntu repositories to install.
 ubuntu-drivers devices

The recommended proprietary graphics driver for your Lenovo Y50 laptop will have the word Recommended after it.

I don't know what version of Ubuntu you are using or what the results of ubuntu-drivers devices will be for your laptop. The latest Nvidia driver in Ubuntu 16.04 is nvidia-375, but even if the recommended graphics driver is nvidia-346 or nvidia-current, it would be OK.


Cant connect to internet when using VPNq

Ended up figuring it out. The next day I couldn't access the internet at all (with or without VPN). The issue was definitely with the DNS, both based on the ping results in my question and because the chrome error was "DNS_PROBE_RESULT_BAD_CONFIG" (hadn't seen that before).

After looking a little bit more closely, I found some posts that recommended adjusting the resolv.conf or resolv.conf.d/head,tail files to correct the issue. There should have been a symbolic resolv.conf link in my /etc/ directory, but instead it was an immutable ASCII file (so I couldn't edit the file, and trying to use the resolv.conf package resulted in errors.

Eventually I figured out the solution through a combination of shots in the dark and guidance from entering terminal commands.

My solution was (not sure if all steps are necessary):
1: Remove resolvconf (sudo apt autoremove resolvconf)
2: Try reinstalling resolvconf (sudo apt-get install resolvconf)
3: Fix the immutable resolv.conf text file: (sudo chattr -i /etc/resolv.conf and then sudo dpkg --configure resolvconf)
4: Remove and reinstalled again for good measure

I also noticed that before, I had a resolv.conf.vpn file in the /etc/ directory that was removed when I completed the above steps, so I think that was my original issue. I'm not quite sure how I broke it in the first place (fairly confident it was my fault though as I was trying some commands I didn't fully understand), but that fix worked for me!


Auto login is not password less, it just bypasses the password and logs you in automatic. you still have a password, its the same one you used for the installation and the installation wont run if the password box is empty. You must have used something to install, that is the same password you need atm.


EFI Dual Boot Windows 8.1 and Ubuntu 14.04

Your issue

BootNext: 0009
BootCurrent: 000F
Timeout: 0 seconds
BootOrder: 000F,0008,0009,000A,000B,000C,0007,000D,000E,0001
Boot0001* Windows Boot Manager  HD(3,363800,82000,17b1af25-3a01-4b33-9fa5-e6324bca1b76)File(\EFI\ubuntu\grubx64.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................

As you have already found out, you probably have a functional entry for \EFI\ubuntu\grubx64.efi that seems to be labelled as Windows Boot Manager, which can be very confusing.

Possible solution

As I don't know of a method to rename these entries I suggest to remove this entry by running the following efibootmgr command:

efibootmgr -B 0001

Where 0001 is the number of the entry to delete and that should be changed according to current efibootmgr output.

To create a new entry run the folllowing command:

efibootmgr -c -d /dev/sdX -p Y -l \EFI\ubuntu\grubx64.efi -L "Ubuntu"

/dev/sdX should be changed to the actual device name that contains the Ubuntu partition and the EFI System Partition/ESP (it is recommended to have an ESP for each drive you want to boot from), most likely /dev/sda.
Y is the partition number of the ESP, most likely 1.

A possible workaround or recommended fallback could be to set up gummiboot.


Open your control center:

gnome-control-center &

Find the Language Support tool (under Personal settings).

Click on Install/Remove Languages.... Find German and select it.

Click Apply Changes

After the procedure you will be able to select German as the primary language.


fglrx still being installed was to blame here. Better nuke it from orbit:

sudo apt-get remove fglrx*


How to install libmicrohttpd10 in ubuntu 17.10

It is available in 16.04, and installing the 16.04 version on 17.10 is likely to work (assuming you really cannot install 16.04; otherwise you should do that). However, do not just download a .deb and install it, because if a vulnerability is found in it, you will not automatically get the fix. Instead, you can add the 16.04 repositories as follows.

First, copy your current sources.list to a new file in /etc/sources.list.d:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/xenial_for_libmicrohttpd10.list

The name of the new file is just a reminder for the future you of what its purpose is. You can also add a more elaborate comment in it.

Second, use your text editor of choice to replace all occurrences of artful in the file to xenial. For example:

printf ',s/artful/xenial/\nw\n' | sudo ed /etc/apt/sources.list.d/xenial_for_libmicrohttpd10.list

Finally, just to be sure that no Xenial package other than libmicrohttpd10 will be accidentally installed, give them a low priority by creating a file in /etc/apt/preferences.d like this:

Package: *
Pin: release n=xenial
Pin-Priority: 99

Package: libmicrohttpd10
Pin: release n=xenial
Pin-Priority: 500

Then you can do sudo apt update && sudo apt install libmicrohttpd10.


how do i prevent ubuntu from starting GUI automaticaly?

You can disable It by using

sudo update-rc.d -f lightdm remove

The above commmand will remove the lightdm symlinks in the various runlevel init directories e.g. /etc/rc0.d, rcS.d, rc2.d etc..

Now after every login you need to enter startx command mannually to start GUI.

To enble it type

sudo update-rc.d -f lightdm defaults


Connecting to Windows Guest using Headless Virtualbox / phpvirtualbox and an OpenVPN-Server

I did resolve this by getting my virtual machines virtual IP address via web console (you can do this on command line aswell) and then added port forwarding from the virtual ip to the real ip. piece of cake when you know what needs to be done!


You can in effect install previous versions of all your packages, as were present in 12.04.

But, I am not sure if downgrading as such is possible.

Your best bet would be to do a complete reinstall.


Try installing from the official Ubuntu repository. I have got LTspice working
LTspice
Here's how I did it.
Using the apt repository. The –install-recommends option will install all the recommended packages by winehq stable versions on your Ubuntu system.
sudo apt update
sudo apt-get install wine-stable

or
sudo apt install --install-recommends winehq-stable

Once wine is installed, check the version using
wine --version

If the above doesn't work, try the official wine installation at https://wiki.winehq.org/Ubuntu
Once wine is installed, download the windows executable file at https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html.
wine LTspiceXVII.exe

or
Click on LTspiceIv.exe and open it with wine. Wine will install the program and happy simulating!


Already found a solution. Add a acpi_osi='!Windows 2012' option to /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="splash quiet acpi_osi='!Windows 2012'"

And then run:

sudo update-grub

Source: https://help.ubuntu.com/community/AsusZenbookPrime#Ubuntu_13.04


Install Ubuntu ARM LTS on a HP Chromebook 14 G3 (Tegra K1, nyan_blaze)

Happy days @OwenHines.

There's a ChrUbuntu thread on Reddit that has a modified ChrUbuntu script compatible with the HP Chromebook 14 G3 Tegra K1 nyan_blaze ARM architecture (I cannot post the original link here because I don't have at least 10 reputation points for 2 links).

The script had a couple of minor bugs, which I've fixed, available here, and I also
added 'username', 'password' and 'hostname' variables to the top of the
script so that you don't have to change these details after installation.

If you read the script, it says that you have to run (slightly elaborated):
    sudo parted --script /dev/<device_id> "mktable gpt" where <device_id> is either sd[a|b|c|d] (usb stick) or mmcblk1 (sd card)

first, to create an empty gpt partition table (because Chrome OS shell no longer has the parted command).

After that execute sudo bash chrubuntu-tegra-HP-Chromebook-14-Tegra-K1.sh default latest /dev/<device_id> which will install Trusty Tahr 14.04.5 LTS and the Unity Desktop

I installed to a fast 32GB+ USB 3.0 pen drive and performance is good.

After the script finishes press enter to reboot and then Ctrl-U when on
the Chromebook Boot Screen.

I tested various webgl benchmarks.  www.fishgl.com ran at 60fps

Don't upgrade to 16.04 because lots of things break and Tegra K1 GPU acceleration is only supported by this 14.04 install.

The other scripts, "backup" and "sign" are for compressed backups and for restoration.  You have to sign the restored kernel whilst in the Chrome OS shell.

Best Wishes, @spearthistle.


tar czf apt-sources.tar.gz /etc/apt/sources.list*


There is one thing (thank you @kos):

  I definitely wouldn't remove gcc in general, but if I had to I
  wouldn't do it this way: this will remove also build-essential
  and hence make; for one, if you have the nVidia > drivers installed it will remove those as well, since they
  depend on make, plus who knows what other stuff.

With other words, know what you do. ;-)

If you only need a reinstall, use

sudo apt-get install --reinstall gcc-4.9

If you really, really need to remove gcc-4.9, use this short and dangerous command:

sudo apt-get purge gcc-4.9


GUI for setfacl or other NTFS equivalents?

Yes, there is a GUI to setup ACLs, its name is eiciel, and you can see some screenshots in this answer;
I don't know of any alternatives to ACL.


Icons missing from launcher, system settings, folders

This can happen if you used a different Icon theme before upgrading for example Faenza Icon Theme.

To revert to one of the original Ubuntu-mono Icon themes, you need to install gnome-tweak-tool to do it in a simple way.
After installation start the tool go to Theme, and change the Icon setting from the dropdown menu back to the original theme ubuntu-mono-light/dark.
In case you want to have back the old theme reinstall it as you did the first time you used  it.


Use Apache Commons Daemon and JSVC: http://commons.apache.org/proper/commons-daemon/

It is the solution which is also used by the most common Java daemon: Apache Tomcat.


caffe-cpu is in the default Ubuntu repositories in Ubuntu 18.04 and later. Upgrade to Ubuntu 18.04 and you can install caffe-cpu with the following command:

sudo apt update
sudo apt install caffe-cpu

Results of apt-cache showpkg caffe-cpu in Ubuntu 18.04:

Reverse Depends:
  caffe-cuda,caffe-cpu
  caffe-cpu:i386,caffe-cpu
  science-machine-learning,caffe-cpu
Dependencies:
1.0.0-6 - caffe-tools-cpu (5 1.0.0-6) python3-caffe-cpu (5 1.0.0-6) libcaffe-cpu1 (5 1.0.0-6) libopenblas-base (16 (null)) libatlas3-base (16 (null)) libblas.so.3 (0 (null)) caffe-cuda (0 (null)) libcaffe-cpu-dev (5 1.0.0-6) caffe-doc (5 1.0.0-6) caffe-cpu:i386 (32 (null))
Provides:
1.0.0-6 -

$ sudo apt-get install -s caffe-cpu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  caffe-tools-cpu libboost-python1.65.1 libcaffe-cpu1 libgflags2.2
  libgoogle-glog0v5 libleveldb1v5 liblmdb0 python3-caffe-cpu python3-gflags
  python3-leveldb
Suggested packages:
  libcaffe-cpu-dev caffe-doc
The following NEW packages will be installed:
  caffe-cpu caffe-tools-cpu libboost-python1.65.1 libcaffe-cpu1 libgflags2.2
  libgoogle-glog0v5 libleveldb1v5 liblmdb0 python3-caffe-cpu python3-gflags
  python3-leveldb
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Inst libboost-python1.65.1 (1.65.1+dfsg-0ubuntu5 Ubuntu:18.04/bionic [amd64])
Inst libgflags2.2 (2.2.1-1 Ubuntu:18.04/bionic [amd64])
Inst libgoogle-glog0v5 (0.3.5-1 Ubuntu:18.04/bionic [amd64])
Inst libleveldb1v5 (1.20-2 Ubuntu:18.04/bionic [amd64])
Inst liblmdb0 (0.9.21-1 Ubuntu:18.04/bionic [amd64])
Inst libcaffe-cpu1 (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Inst caffe-tools-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Inst python3-gflags (1.5.1-5 Ubuntu:18.04/bionic [all])
Inst python3-leveldb (0~svn68-3build3 Ubuntu:18.04/bionic [amd64])
Inst python3-caffe-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Inst caffe-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Conf libboost-python1.65.1 (1.65.1+dfsg-0ubuntu5 Ubuntu:18.04/bionic [amd64])
Conf libgflags2.2 (2.2.1-1 Ubuntu:18.04/bionic [amd64])
Conf libgoogle-glog0v5 (0.3.5-1 Ubuntu:18.04/bionic [amd64])
Conf libleveldb1v5 (1.20-2 Ubuntu:18.04/bionic [amd64])
Conf liblmdb0 (0.9.21-1 Ubuntu:18.04/bionic [amd64])
Conf libcaffe-cpu1 (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Conf caffe-tools-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Conf python3-gflags (1.5.1-5 Ubuntu:18.04/bionic [all])
Conf python3-leveldb (0~svn68-3build3 Ubuntu:18.04/bionic [amd64])
Conf python3-caffe-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])
Conf caffe-cpu (1.0.0-6 Ubuntu:18.04/bionic [amd64])


The problem is fixed in newer versions of Chrome (at least for me.)


Multiple (triple) monitor configuration suddenly broke in 16.04 Gnome

I have a triple monitor set up that was working fine in 16.04.  I have just updated to 17.04 and the system starts up with incorrect monitor settings.  My choice of primary monitor is ignored.  The main menu bar starts 3/4 of the way across the middle monitor and finishes 3/4 across the third one.  It can only be raised on the middle monitor and it disappears when one moves from the middle to the right monitor.

The Fix (so far) is to unplug the hdmi cable of the middle monitor, give it a second and plug it back in.  After this my saved settings are correctly used.


Upgrading from 14.04 to 15.04 directly is not supported. You'd have to do 14.04->14.10->15.04, which will not work, as 14.10 has reached End of Life. Last but not least, 15.04 itself will reach EoL is January 2016, which makes upgrading unworthy.

I'd recommend staying on 14.04, and upgrading to 16.04 in due course (in summer 2016).


How to start an application at boot time or as a service

As you are saying it require network and you are creating new directory so it need local-filesystem also .so you have to use

start on (local-filesystems and net-device-up IFACE!=lo)

or

start on (local-filesystem and started networking)

instead of

start on runlevel [2345]

and you can try

if [ ! -e /var/run/poolparty ]; then
     /bin/mkdir  /var/run/poolparty
   fi

instead of

  [ -d /var/run/poolparty ] || mkdir -p /var/run/poolparty
        echo "starting Poolparty"

suggestion : see upstart log  under /var/log/upstart that will help you where you are missing. and also check syntax error of init script using command:

init-checkconf -d /etc/init/poolparty.conf

and for better understanding of upstart script see Upstart Ubuntu cookbook


LDAP network connection lost when lid is closed Ubuntu 14.04

There are numerous reasons why your networking is not restarting, this is a work-around to force networking to be restarted.

Instructions are from http://ubuntuforums.org/showthread.php?t=2218043&p=13000035#post13000035

From the command line/terminal.
Create the following file and the make it executable:

sudo touch /etc/pm/sleep.d/wakenet.sh
sudo chmod +x /etc/pm/sleep.d/wakenet.sh

Then open it in an editor:

 sudo nano /etc/pm/sleep.d/wakenet.sh

or

gksu nano /etc/pm/sleep.d/wakenet.sh

and then paste the following in:

#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
pkill -f wpa_supplicant
;;
*)
;;
esac
exit $?

Then save the file and exit your editor.


How to completely reset Gnome and desktop tweaks on Ubuntu 15.04?

Does resetting Gnome tweak tool's settings help?


Kubuntu:16.04.3: how do I install/use Intel microcode?

The Intel Xeon may be too old to get firmware updates, but here goes...

In terminal...

sudo apt-get update # update the software database

sudo apt-get install intel-microcode # install intel-microcode

reboot # reboot the computer

either one of the following:

dmesg | grep -i microcode # review the log since boot

grep -i microcode /var/log/syslog* # review syslog

Looking to see if the microcode got loaded, or if it
indicates that it's not required for your processor.

If it's not required:

sudo apt-get purge intel-microcode # to uninstall it

To use intel-microcode, you don't do anything, other than to note that it's working on your processor.


youtube-dl: download a YouTube channel without user ID

You don't need to use the youtube-dl ytuser:<youtube username> option. I was able to start downloading and download several videos from the channel that you linked to in your question without using that option, but my answer won't work on older versions of youtube-dl. I tested my answer on both an old and a new version of youtube-dl. It worked on the latest version of youtube-dl, but it didn't work on the old version.
Update youtube-dl to the latest version before you start downloading all the videos in a channel.
sudo snap install youtube-dl # start with snap run youtube-dl

or
sudo apt remove youtube-dl
sudo apt install python-pip
python3 -m pip install --user youtube-dl

If you already have installed youtube-dl with pip, you can update it  to the latest version with this command:
sudo pip install --upgrade youtube-dl # omit the sudo if installing in a Python virtual environment

Open the terminal and type:
youtube-dl -f best -ciw -o "%(title)s.%(ext)s" -v <url-of-channel>

...where <url-of-channel> is replaced by the URL of the channel and replace FORMAT with any available video format, for example 18. To show the available formats of a video type:
youtube-dl -F <url-of-video>

Note: If you are downloading a lot of videos, you should change directories to the directory where you want to save the videos before you start downloading them.
Explanation
-f, --format FORMAT
    video format code

-c, --continue
    force resume of partially downloaded files

-i, --ignore-errors
    continue on download errors, for example to skip unavailable videos in a channel

-w, --no-overwrites
    do not overwrite files

-v, --verbose
    print various debugging information


Install Ubuntu 14.04 to replace 12.10, as dual boot with Windows.

You should be able to upgrade your version from within: I've done this before, sadly you do need to upgrade one version at a time.
From what I recall anyway, here's a link: Upgrade to the Latest Ubuntu the Easy Way
Hopefully you can sort it out.


Not able to install c++ eclipse indigo after completely uninstalling

The nice thing about Eclipse IDE is that you don't need to install it. When you download Eclipse you get a zip file that you can unzip to somewhere in your home directory and just execute it from that directory.
If you will visit the Eclipse downloads site you will see a list of available packages where you can choose the Eclipse IDE for C/C++ Developers (32/64 bit) and download the zip file.

You'll also get the latest version (v3.7.2) which is newer than what you'll find in the repository.


Not sure if it is relevant, but is your swap partition at least as big as the amount of memory in the notebook? When Linux hibernates it uses the swap partition to write out the contents of RAM.


Keyboard shortcut Shift + Ctrl + Escape does not work

Use CCSM to assign the command and keybinding and it will work in Unity.

To get Compiz Config Setting Manager do the following:

Open the Terminal by pressing Ctrl+Alt+T and type:

sudo apt-get install compizconfig-settings-manager compiz-plugins-extra -y

Open CCSM
Select the commands option
Assign the command on line 0

Select the Keybinding tab and assign the hotkeys you like to trigger the command.


I've ended up with a two-step process: passing to to git diff and then post-processing it with an AWK script:

     git diff --word-diff=porcelain -U10000 %1 %2  |
     awk -f mysmartdiff.awk;

The first step returns a result in the following form:

~
   3 Spin_Up_Time            0x0027
-172
+173
    168   021    Pre-fail  Always       -
-2358
+2333

and the second script does this:

The mysmartdiff.awk script is the following:

BEGIN {
    DEBUG=0
    l1=""
    l2=""
    old=""
    new=""
}
function dprint(s) { if(DEBUG) {print s > "/dev/stderr"} }

function appendDiff() {
    if(length(old)!=0 || length(new)!=0) {
        l1 = l1"\033[1;31m"old"\033[0m"
        l2 = l2"\033[1;32m"new"\033[0m"
        old="";new="";
    }
}
{
    dprint(">>>>>>>>>>>>>>")
    dprint("ORIG: " $0)
    if(match($0, /^ /)) {
        appendDiff();
        l1 = l1""substr($0,2)
        l2 = l2""gensub(/[^-]/, " ", "g", substr($0,2)); ## leave '-' to aid further space trimming
    } else if(match($0, /^~/)) {
        appendDiff();
        print l1;
        if(l2 !~ /^[ -]+$/) {
            print l2;
        }
        l1=""
        l2=""
    } else if(match($0, /^-/)) {
        old=substr($0,2);
    } else if(match($0, /^+/)) {
        new=substr($0,2);
    }
}


On a fresh install of Ubuntu 12.04, The Vuze Plugins menu does not work when installing from the Ubuntu software repositories.  There does not appear to be any support of the azbuddy plugin feature.  It is not offered from the Vuze plugins list and a folder with configuration files is not adding automatically to /home/username/.azureus/plugins.  The Vuze GUI lists the plugin as installed and lets you configure it, but does not take affect.  Basically, it's just misleading.

Transmission does have the capability to privately share torrents with friends.  From the Transmission application menu select:

File/New
select the "Private torrent" check box.

There are just 2 directories where Vuze configuration files are stored (when installed using the repositories version rather than manually):

/home/username/.azureus
/usr/share/app-install/desktop/azureus:azureus.desktop

To completely uninstall, use thepurgeoption. autoremovewill get rid of any java packages you aren't using.  Until you log other users out, their configuration files will not be deleted.

sudo apt-get purge azureus
sudo apt-get autoremove

In conclusion, I've switched to Transmission and am happy.  Vuze doesn't seem to have much support and can be buggy.


Encrypted an external hard drive on macOS; now I cannot load on Ubuntu

Complicated.
You need to follow these instructions:
https://github.com/libyal/libfvde/wiki/Mounting
Previous installation of these applications:
https://github.com/libyal/libfvde
https://github.com/libfuse/libfuse


This exact issue drove me insane. The solution is to apply the graphics settings in more than one options menu. You must first apply your settings in the nvidia-settings menu, and then open the Displays menu (located in the All Settings menu), and hit apply there as well. I know you aren't tweaking any settings in the Displays menu, but you must click apply there anyway, so that your nvidia settings persist between reboots.


How do I get Civilization 3 to play on ubuntu

First things first: Your Windows version of Civ 3 is not going to work out of the box on Linux (or any other Operating System outside Windows) because it's a Windows version. That said, there are a couple of workarounds that you can try to run Windows programs on Linux:

Depending on the Civilization 3 version you have, you may get good or bad results using Wine: https://appdb.winehq.org/objectManager.php?sClass=application&iId=426
In any case, for installing and playing Windows games on Linux I'd recommend using PlayOnLinux: https://www.playonlinux.com/en/


I recently had issue like this, but I stumbled upon a forum which said to try these;

grep 'pam_xauth.so' /etc/pam.d/*  | awk -F ":" '{ printf "%s\t(%s)\n", $2, $1}'

if that didn't work then you just set this into /etc/sudoers

Defaults env_keep=DISPLAY

logout and back in again and it should work.


Find files and rename and move to another directory

{} is replaced by the entire pathname of the file as you see it if you run the command without the -exec part. So obviously, you cannot directly use that. You can use the basename command to strip only the file name of the path, as in

find dir_1 -type f -name '*.txt' -exec sh -c 'mv "{}" ../dir2/new_$(basename "{}")' \;

Adding quotes " around {} will have it work also if the filename contains spaces.


LiveCD + truecrypt drive have write disabled

This is preliminary, but numerous options appear to be at your disposal:

launching truecrypt as sudo from terminal sudo truecrypt
re-booting your system
modifying /etc/usbmount/usbmount.conf and inserting the uid and/or gid that you'd like the device to mount as, e.g. FS_MOUNTOPTIONS="uid=1000,gid=1000"
again, using the command line, mount the USB as removable medium
if you had a "permission denied" error while attempting to mount, here's a solution which involves samba
if your truecrypt drive were bootable, you could try truecrypt –mount-options=system /dev/sda1 ......
finally, you may want to consider creating a custom LiveCD with truecrypt pre-installed

Good luck!


maxdepth switch ignored by find running in crontab

The behavior you are seeing is not anything to do with -maxdepth, it's because the list of files from your find command includes top-level directories, which are then recursively archived by tar.

Current versions of GNU tar have a --no-recursion option to turn off recursive directory traversal. However if you don't wish to archive the empty top-level directories, probably the simplest solution is to omit directories from the listing by adding -type f or ! -type d to the find command:

10 0 * * * (cd /; find var/www/news -maxdepth 1 ! -type d -print0) | /bin/tar -C / --null -T - -zcvf /mnt/nfs/Backup-Static-Sites/backupfile.tar.gz


Why does CTRL-ALT-F1 not send me to a terminal?

CTRL-ALT-F3 to get to terminal; ALT-F2 to return to GUI. (See this answer.)
I have not yet verified if this has a higher priority  that would allow getting to the terminal, then killing the problematic process, comparable to Windows CTRL-ALT-DEL.


How to share a wired Internet connection with an Android phone (reverse-tethering)?

Yes, it is possible. I have Ubuntu 11.04, NetworkManager 0.8.4, Android Nexus One phone running Cyanogenmod 7.

As described by Roman, right-click on the NetworkManager icon and choose "Create new wireless network". I chose to leave the connection wide open (no WPA, no WEP). My phone was able to see the network right away and I connected without trouble. The bridging was automatically done so I could browse the internet without configuring anything extra.

The reason why you having trouble with the above method is because stock Android 2.3 doesn't support ad-hoc networks. To be precise, Android's wpa_supplicant does not show ad-hoc networks. There are a number of ways to fix this. Google around and go hunting in the xda-developers forums. You will probably need to do some hacking on your phone that is beyond the scope of this answer.

My personal recommendation: if your phone supports Cyanogenmod, you can install it to get ad-hoc support and other hackish delights. You will need to root your phone, which may or may not be to your taste.

Another alternative is to try "Infrastructure mode". After setting up the ad-hoc wireless network as per above, click on the NetworkManager icon, choose "Edit connections". Hit the wireless tab and Edit the ad-hoc network you just created. Under Mode, choose "Infrastructure". I am unsure if this will work for you since I don't have a stock Android phone to test with. My thought is if ad-hoc mode is the problem, then the another mode might be the solution.

Good luck!


how to make a custom ubuntu 11.10 64 bit installation DVD

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

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

https://help.ubuntu.com/community/LiveCD/Persistence

http://uck.sourceforge.net/

http://homepage.mac.com/bner/iblog/B1570693677/C1271976503/E1448650622/index.html

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

http://gicl.cs.drexel.edu/people/tjkopena/wiki/pmwiki.php?n=SWAT.UbuntuLiveCDCustomization

This is an endless list.Do one thing first of all make sure that  you have all the required packages libraries (in the binary or the source code)

then follow the steps on any of the sites to place them

(Hey make sure that if you compile something that COMPILATION must be done on the customized system otherwise there maybe problem of cross compilers and others)


Chrome and Chromium are taking a long time to load

Solved this by creating this file ~/.config/autostart/gnome-keyring-daemon.desktop with the following content:

[Desktop Entry]
Type=Application
Exec=/usr/bin/gnome-keyring-daemon
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Gnome Keyring Daemon
Name=Gnome Keyring Daemon
Comment[en_US]=Load gnome keyring daemon
Comment=Load gnome keyring daemon

Then I rebooted and Chrome/Chromium went back to normal (source).

After rebooting I kept getting this message "keyring was not unlocked upon signin" and had to type my password. I got rid of it by following How can I stop being prompted to unlock the 'default' keyring on boot?


Merge my new disk (un allocated Space) without any loss data

You could not merge these two different disks. They are not partitions.

But you could resize it using your Hypervisor's tools if it supports such operations.

You could also create the new one disk of required size (70 Gb) and clone your old disk to it using GParted:

Boot into Ubuntu's Live CD (Try without installing mode of your Ubuntu installation disk)
Open GParted
Select your disk with bigger size and chose Device -> Create partition table for it (Default msdos could be used)
Select your old disk, right click it and Copy
Select your new disk, right click it and Paste
Apply operations if you see the newer disk marked as Copy of /dev/sda1 or similar
Right click newer disk -> Manage Flags -> Check boot.
Shutdown your VM and change disks boot priority, making your new disk booted first.

I tried this on Virtualbox VM. But in my case it didn't want to boot from new disk. I've powered off the VM, renamed old disk.vdi to disk.vdi.bk and renamed new disk to disk.vdi. Then I removed second disk item from Virtualbox disk controller and OS booted from cloned in GParted disk.


Ubuntu running very slowly on VirtualBox VM

The solution that worked for me:

Shut down the VM
Turn off Enable VT-x/AMD-V under System > Acceleration in the vm settings
Boot VM, should run much better now but still a bit slow
Shut down VM
Enable the option again
Boot VM, should run smoothly now


It really depends what you are doing exactly.

In general, I would say it's not good as a CAD tool for mechanical engineering.

It's good for modeling good looking things (teaspot, tree, people etc.), but if you want to for example handle strength calculations, you are basically out of luck (unless you do everything manually).

Of course, if you have to sell something, and you need good-looking renderings, then Blender might be good tool, but that's different from designing machines or buildings from engineering point of view.


removing shortcut created during deb installer, at uninstall

How about adding a condition to check if the file exists or not before attempting to remove it in your POSTRM script?

That should let the dpkg do its stuff gracefully without failing due to a non-existent file.


Let's say you have named your computers main and spare, where main is your main computer running out of space, and spare is your headless NAS.
Step 1: Install openssh-server
ssh stands for secure shell. It is one of the key means of controlling a headless server remotely. Open a terminal in the computer spare and use the command:
sudo apt install openssh-server

to install the ssh-server in your headless server computer.
Step 2: Test ssh
Now open a terminal in main and type the command:
ssh username@spare.local

where username is the username of the sudo user of the computer spare. If username in spare is identical to username in main, then you can ommit username@ and can just enter:
ssh spare.local

If ssh to spare.local does not work then try the local IP address instead:
ssh username@192.168.x.y

Your local IP address may look different. x and y are numbers.
Answer the question about trusting the host and enter the sudo password for the spare computer. If all goes well you will be logged on to the computer spare while sitting at the computer main. You will know this by the change in the command prompt of the terminal from:
YourUserName@main:~$

to:
YourUserName@spare:~$

If you see this change in your terminal, congratulations! Now you can exit spare by typing exit. Your command prompt will return to:
YourUserName@main:~$

The test is complete.
Step 3: Turn off spare
Use the following command to turn off spare:
ssh -t username@spare.local "sudo systemctl poweroff"

This command sends the command inside the quotation marks to spare. Since that command starts with sudo you will be asked for your spare password twice, once for the ssh command, and the second time for the sudo to power off.
Step 4: Write a script
You can create a little script so that you don't have to type all that every time. The script can be called stopspare.sh and it can be saved in /home/$USER/bin folder of your main computer. The /home/$USER is your Home folder, $USER is your user name. If the bin folder does not exist in Home, create it.
The script will have two lines:
#!/bin/bash
ssh -t username@spare.local "sudo systemctl poweroff"

Remember to change username to the user name you use in spare. If you save the script in the location I suggested above, you can just open a terminal in main and type
stopspare.sh

to turn off the spare computer.
Bonus!
See the Ubuntu to Ubuntu section of this answer for how to use ssh based sftp in nautilus to access files in spare.
You may also want to read How to harden an SSH server? for more about security of ssh server.
Hope this helps


Use this function in .bashrc:

man () { yelp "man:$@"; }

Source


Call script after connecting to a wireless network

Apologies for my previous answer which was the way I would have done it years ago. Seems things have changed.

It turns out that Network Manager runs ALL of the scripts in the /etc/NetworkManager/dispatcher.d/ directory (those owned by root, that are executable, that are not readable by other users, and not setuid), when a connection changes (up, down, preup, predown).

Environment variables are set and passed to this script by Network manager. You'll be interested in the CONNECTION_UUID environment variable (contains a unique string).

So, to solve your problem (execute a script when a particular wireless network is connected to):

1) find out the uuid of the wireless connection you're interested in (by looking inside the appropriate connection file in the /etc/NetworkManager/system-connections/ directory).

2) write a bash (or perl, or python, or whatever) script that does what you want if the environment variable CONNECTION_UUID is a match to the uuid of the wireless network in (1) above.

3) put this script into /etc/NetworkManager/dispatcher.d/ and set the owner and permissions appropriately.

further reading: man networkmanager ( and a litte poking around the scripts in the directories mentioned above).

An example script:

#!/bin/bash
#####################################
# MounterBeast Script
# /etc/NetworkManager/dispatcher.d/02remotemount
# Copyright 2011 Nathan E. Williams
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Usage:
# This script must be customized for your configuration.
# By default, the script will attempt to mount a CIFS share
# when a specified MAC address is found at the network gateway,
# or over sshfs if the MAC address of the gateway is not the specified MAC.
# e.g. I mount over CIFS to the servers internal IP when at home, and
# over sshfs when away from home.
#
# id gateway mac without physically checking the sticker:
# $ arp -n -a $(ip route show 0.0.0.0/0 | awk '{print $3}') | awk '{print $4}'
#
# Testing:
# up) sudo /etc/NetworkManager/dispatcher.d/02remotemount wlan0 up
# down) sudo /etc/NetworkManager/dispatcher.d/02remotemount wlan0 down
#####################################
#
# Configuration:
#
targetmac='xx:xx:xx:xx:xx:xx'
mount_user='$USER'
mount_pass='pass'
internal_server_name='192.168.1.102'
external_server_name='my.dyndns.com'
share_name="music"
mount_point='/mnt/remote'
ssh_port='22'
#
# Should not need to edit below
#
gateway=$(ip route show 0.0.0.0/0 | awk '{print $3}')
mactest=$(arp -n -a $gateway | awk '{print $4}')

if [[ "$mactest" == "$targetmac" ]]
then
  case "$2" in
          up)
          sleep 5
          mount -t cifs -o username=$mount_user,password=$mount_pass //$internal_server_name/$share_name $mount_point
          ;;
          down)
          umount -l $mount_point
          ;;
  esac
else
  case "$2" in
      up)
          sleep 5
          sshfs -p $ssh_port $external_server_name:$share_name $mount_point
      ;;
      down)
          umount -l $mount_point
      ;;
  esac
fi

exit $?


[ERROR]: unsupported compiler version: 9.3.0 when installing CUDA on 20.04

According to this link link if you run these command
sudo apt -y install gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8

you can install cuda toolkit


Computer suddenly shuts down while doing specific things

Reminds me of old joke. Guy says to doctor, "it hurts when I do this!"  Doctor says "stop doing that."

You probably have several broken packages. Dpkg is trying to alter something required by the display. 'dpkg' is a blunt instrument. It cannot pull in additional packages to get what it needs. You need fix the breakage before configuring. minecraft is probably tickling same breakage.

For me, it is usually better to remove broken packages (later to reinstall) than to repair/reconfigure: How do I locate and remove Broken Packages that I have installed?

For years, I've not needed to run that dpkg configure you are trying. Needing that is a sign you have done something incorrectly, something deeper is wrong for which you need a light fingered solution. Best answer is to remove the incompletely installed trouble packages,e.g nvidia

sudo apt-get remove --purge nvidia*

Importance of 'purge' is to get rid of settings. Watch the errors when that runs. You may need to reinstall something that was damaged. (Bad news. If packages required by the currently running graphics display must be fiddled, your display may crash. You might need to log out, then try Alt-Ctl-F1 to get to VT1 and try apt-get commands there. Reboot from VT1.)

DO not reinstall nvidia yet. Check for broken packages.

Oh, and... I am a doctor.  Quit playing minecraft. Run programs that are safer.

Before running something that has failed, open terminal and run it with ldd, as in

ldd minecraft

ldd shows all shared libraries a program needs, and which are missing. Run that on a program that works, you'll see what I mean.

Admittedly, most of us don't see such exciting trouble as you see. It will get better, I expect. Funny coincidence. Reading your message crashed my Android tablet.


Can I keep using my computer during 20.04 upgrade install?

Yes you can work on your machine, when it is going to upgrade. but as @heynnema it is not a good idea.
second answer, if you want to see all installed package list, you can see that with the following command.
open you terminal and run this.
apt list --installed
this will show all the installed package list of your machine.
Thank You


Is the Openstack Cloud Installer broken?

Here is the workaround from gangstaluv:

sudo apt install conjure-up
conjure-up openstack

Original Post


I suggest using ifuse, once installed your iphone will mount when connected:

sudo add-apt-repository ppa:pmcenery/ppa
sudo apt-get update
sudo apt-get install ifuse

then update using update manager under System menu

Now Your iPhone will mount when connected, you can find it under the places menu


My first thought is that somehow your alsa configuration has been changed.
Maybe this should provide you some more information what the problem could be:

Open the terminal
type alsamixer and then hit Enter

Then the AlsaMixer should open and you should see some coloured bars. This mixer more possibilities for adjustments.

Check if the bars for Mic and MicBoost are set to a high level.

Eventually you can try to plug in you microphone and see if you can obtain a clean recording by adjusting the bar levels.

If nothing changes, then I would recommend to try restarting the sound system with

sudo alsa force-reload

If your system uses PulseAudio, then you should also try to kill that process with

sudo pulseaudio -k

As I read in other posts, sometimes those commands need to be executed various times until they work.


install and load uuid-ossp on PostgreSQL

You need to install the appropriate contrib package, which contains the extensions etc. I don't really know why packagers insist on this split, but they all seem to.

If your 9.3 came from Ubuntu's own packages it's postgresql-contrib

If your 9.3 came from PGDG (http://apt.postgresql.org/) it's postgresql-contrib-9.3.


Dropbox service not starting automatically after kernel upgrade

By re-installing Dropbox application problem was fixed.


Ubuntu 18.04 : nmbd service will not start

Check smb.conf and see if you got this:

interfaces = 127.0.0.0/8 eth0

If so you may wanna change eth0 to any working NIC port that would show up with ip link.  For me, changing it to:

interfaces = 127.0.0.0/8 enp1s0

works wonder.  Only need to restart nmdb afterwards.


Cannot get past "Installation type" screen after choosing "Install Ubuntu inside Windows 7"

UNetBootin creates "bootable Live USB drives".  I would strongly suggest attempting to boot from the USB drive and installing Ubuntu directly without involving Windows.

Your computer may not be setup to boot from the USB drive. To change this, edit the boot priority options of your BIOS.  Often, you enter your BIOS configuration by pressing F1, F2, F10, ESC or DEL when your computer is booting.

Enter BIOS


Convert every file from JPEG to GIF in terminal

Find can be used for this, but I find it easier to use the shell instead. If your files are all in the same directory (no subdirectories) you can just do:

for f in /path/to/dir/*jpg /path/to/dir/*JPG; do
    convert "$f" "${f%.*}.gif"
done

The ${var%something} syntax will remove the shortest match for the glob something from the end of the variable $var. For example:

$ var="foo.bar.baz"
$ echo "$var : ${var%.*}"
foo.bar.baz : foo.bar

So here, it is removing the final extension from the filename. Therefore, "${f%.*}.gif" is the original file name but with .gif instead of .jpg or .JPG.

If you do need to recurse into subdirectories, you can use bash's globstar option (from man bash):

globstar
    If set, the pattern ** used in a pathname expansion con‐
    text will match all files and zero or  more  directories
    and  subdirectories.  If the pattern is followed by a /,
    only directories and subdirectories match.

You can enable it with shopt -s globstar:

shopt -s globstar
for f in /path/to/dir/**/*jpg /path/to/dir/**/*JPG; do
    convert "$f" "${f%.*}.gif"
done


Can't adjust the brightness on Ubuntu 13.10

I've got the same problem with my Acer Aspire One ZG5. Tried the suggestions on this site  but to no avail. Editing the grub works with Ubuntu 12.04 but not with 13.10. Help please?


You have read write access to all files in your home directory.

To access system files use sudo/gksu (gksu is for graphical applications such as your file browser and editor).

See:

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

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

Changing the permission of files outside your home directory will almost certainly break your system.


Upgrade Kernel to 3.8.0-35-generic fails to boot. "Gave up waiting for root device"

The system has now auto-upgraded to 3.8.0-36-generic, and the problems still exists (I'd been hoping that it was a "oncer").

In practice I've "solved" this by pinning the -34 kernel, by doing the following:

sudo apt-get purge linux-headers-3.8.0-35 linux-headers-3.8.0-35-generic linux-image-3.8.0-35-generic
sudo apt-get purge linux-headers-3.8.0-36 linux-headers-3.8.0-36-generic linux-image-3.8.0-36-generic

Then running:

sudo update-grub

And pinning the -34 kernel with:

sudo apt-mark hold linux-headers-3.8.0-34
sudo apt-mark hold linux-headers-3.8.0-34-generic
sudo apt-mark hold linux-image-3.8.0-34-generic

And checking this via:

dpkg -l | grep ^h
hi  linux-headers-3.8.0-34           3.8.0-34.49~precise1              Header files related to Linux kernel version 3.8.0
hi  linux-headers-3.8.0-34-generic   3.8.0-34.49~precise1              Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
hi  linux-image-3.8.0-34-generic     3.8.0-34.49~precise1              Linux kernel image for version 3.8.0 on 64 bit x86 SMP


It sounds like your headphones have a single jack that includes both the headphone and mic connections. This is called a "4-position" or "4-pin" connector. As you have discovered, unless your computer has a plug designed to use one of those connectors, only one or the other will work.

The 4-pin jacks are more common on smaller devices that benefit more from combining the two audio jacks into one. To find out if your computer has one of these 4-pin jacks, you could:

Look at the marking on the jack to see if it has both headphone and mic icons, or an icon of a headset that shows both.
Look up your computer/motherboard module, or info from sudo lshw -c sound, to see if the specs or discussions mention anything about this hardware having a 4-pin jack

If your computer doesn't have a 4-pin jack, a workaround would be an adapter that will plug into your headset, and then provide separate headphone and mic plugs for your computer. This will be something like a 3.5mm combo jack splitter, headset to PC.


How can I allow someone to access my VM?

You can read all about how to configure sshd_config by typing man sshd_config.

The particular option you want is PasswordAuthentication yes.


How to install the latest version of ImageMagick?

According to http://www.imagemagick.org/discourse-server/viewtopic.php?t=29006#p129405, there is a PPA that provides the 6.8.9.9 version of ImageMagick for Ubuntu 14.04 at https://launchpad.net/~isage-dna/+archive/ubuntu/imagick that you can try at your own risk:

sudo add-apt-repository ppa:isage-dna/imagick
sudo apt-get update
sudo apt-get upgrade


How to install Jupiter in Ubuntu 13.10 Saucy Salamander?

Jupiter is not supported anymore, so i would not recommend installing it on 13.10.

Source: http://jupiter.sourceforge.net/downloads.html


SD card content not showing up in Ubuntu

The ability to write .img or .iso files is built into Ubuntu, don't use some weird third party tools. Either just double-click on the .img file in Nautilus (the file browser), or right-click on it and then select to pass it to the image writer. Select your SD card as target and choose to "recover" the image.

If your Windows can read the resulting USB or not depends on the file system that is written to the card.


Optimizations When Installing to an SD Card

No, you pretty much have to do most of the optimizations yourself.  But the biggest optimization is just to use the guest session, which basically sets up a temporary user in ram, so browser cache as well as all the hidden user files are takencare of.


IMHO, fresh install, a copy of the entire HDD (raw copy, dd style), or a copy of the whole file system (tar / rsync style) doesn't make much of a difference, neither in terms of stability nor performance.

When you talk about copies, though, you need to be careful about a few things:

/boot/initrd* files. With each kernel you generally end up creating an initrd, an image containing basic drivers that the kernel itself needs before it is able to boot your system. If the hardware where you copy your system to is different, initrd is different, and may not be able to boot.
xorg.conf configuration and similar. Again, if the hardware is different, it is unlikely that the old configuration will work. Much of X config, however, is automatically detected in recent days.
if you copy the whole HDD raw using dd to a new machine, the new machine needs to have a disk of similar size. Unless you are the kind of person that enjoys playing with parted :) Also, make sure the disk you are copying is not mounted (or mounted read only) and sane (fsck clean) before copying it. You don't want to copy a corrupted disk or a disk in the middle of a write.
if you copy the whole HDD using tar / rsync, make sure not to copy /proc and /sys, prefer using options like -a and --numeric-ids, and make sure again you don't copy files in an inconsistent state. Example: you really don't want mysql to be writing to a database file while you are copying it.

That said, I've done both fresh installs and copies.


How to solve the phpmyadmin not found issue after upgrading php and apache?

Create a link in /var/www like this:

sudo ln -s /usr/share/phpmyadmin /var/www/

Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/

If that's not working for you, you need to include PHPMyAdmin inside apache configuration.

Open apache.conf using your favorite editor, mine is vim :)

sudo vim /etc/apache2/apache2.conf

Then add the following line:

Include /etc/phpmyadmin/apache.conf

For Ubuntu 15.04 and 16.04

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload


As the error messages says, it's because the legacy (non-netfilter) iptables subsystem is present. The most common cause is that the iptables-legacy command is called, which loads the legacy modules.
There are 5 modules related to legacy iptables, one for each table. (Note: The module names begin with iptable_, no S here)
iptable_filter
iptable_nat
iptable_mangle
iptable_raw
iptable_security

When ANY of them is loaded, iptables-nft decides that the legacy iptables is present, and emits the said warning.
Similarly, there are 5 more modules for legacy IPv6 iptables, each beginning with ip6table_ (no S here, too).
After migrating to netfilter, those 10 modules can be safely removed with rmmod and blacklisted.
Note again that using blacklist iptable_filter doesn't work here because this directive only prevents automatic loading, but not manual loading via modprobe(8) or another command. This solution using install <modulename> /bin/false should correctly prevent the module from loading under any circumstances.


Wow after so much tinkering, I was able to solve the questions 1,2,3 and 4. maybe it was a very easy thing and i made it complicated for no reason. any way thanks @George Uderson for the website it helped a lot. here is what i did

1) I opened network settings in vm and opened the port forwarding tab. gave a name and put host ip as 127.0.0.1 , port as 22 or anything really, then put guest ip as 10.0.2.x whatever it is and port as 22. open putty and put ip as 127.0.0.1 and port 22 and voila! you are in

2)For this its better to have a fixed ip address of your pc running the vm. i changed it easily in the network properties in win 7. then we can follow the previous step but in place of 127.0.0.1 we put our fixed ip address. then we can use that ip address in putty easily.

3) do same as step 2 or 1 but in place of ports we put the ports used by the container i.e. xxxx

4)same as 3 but only with fixed ip address.

5)dont know how to make that work out of home network.

please correct or edit if i am wrong somewhere. but this worked for me. thanks


2 ways you can accomplish that:

Use Grub Customizer.   Its a GUI that allows you control over GRUB2 settings and menuentries.  To install Grub Customizer, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Or you can do it manually by editing the grub.cfg file, located at /boot/grub/grub.cfg.


Fixing key backlight on samsung ativ book 8

The issue was resolved by reinstalling Ubuntu in CSM mode. I think there is an issue with uefi and the function keys.


Extracting images from video at 1 minute intervals

You can use:
ffmpeg -i video.avi -r 0.01  -t 00:01:00 -f image2 image%02d.png

-r is what you need to change. -t is how long your video will go on ;)
Hope to be helpful


I try install dhcp3-server, but /etc/init.d/dhcp3-server file is missing. Whats going on?

The dhcp3-server package has been transitioned to the new-style "ISC" DHCP package. This package is called isc-dhcp-server, and would have been installed when you installed dhcp3-server.

The file you're looking for is now /etc/init.d/isc-dhcp-server.

Note that you may use the service command to start and stop daemons:

sudo service isc-dhcp-server restart

The service tool will handle the different styles of daemon start/stop behaviour (ie, /etc/init.d/* vs. /etc/init/*.conf).


OpenOffice files open with Archive Manager by default

Josh

if you right-click on a (let's say) odt file in nautilus and select "Properties", you can change default opening behaviour in 3-rd tab, the one labeled "Open with", then confirm with "set as default".

Cheers,

Silvia


not able to create sym-link our OpenCV cv2.so bindings into cv

You probably want the arguments flipped like so:

ln -s cv2.so /usr/local/lib/python2.7/site-packages/cv2.so


GParted allocation trouble on Win10/Ubuntu dual boot

You need the unmounted drives to change the Partition size.  I suggest that you Run an Ubuntu live Version and use gparted from this live Version.

You should resize your Windows Partition first, then move the unallocated space step by step through the partitions until you have reached sda7.

Be carefull and make a Backup of your files. Means both,  Windows and Ubuntu. This Operation can damage your files if something goes wrong.

After the steps above Windows will start maybe in a kind of recovery mode or in a Check Mode -> Check File System


Ubuntu 14.04 Nautilus has no menu - File, Edit etc. don't exist

Run dconf-editor, navigate to org > gtk > settings > file-chooser, then untick show-hidden.

Press Ctrl+h to show hidden files, press it again again to hide them.


straight into windoes while dual booted with ubuntu

open terminal in ubuntu

gksudo gedit /boot/grub/menu.lst

press ctrl+f and type default. You will then find

default 0

change 0 to the option you want to be selected as default.

now save it.

Also, it gives you 10 seconds to change the OS to boot. If you want to shorten this to 1 second:

also change

GRUB_TIMEOUT=10

by

GRUB_TIMEOUT=1


How to disable Import option in LibreOffice Calc while pasting text in a cell?

Unfortunately, there is no option to disable the dialog. LibreOfice Calc makes some decisions on the paste based on the type of text that is in the clipboard.

If it is single line plain text, the content is directly pasted. If it is multi-line plain text, the text import dialog, such as you describe, appears.
If it is formatted text, the "Select language to Use for Import" appears. Text will be pasted with a different formatting, deduced from the format information in the clipboard. Separate lines will be pasted in different cells, with formatting determined by the copied source text.

This is at times annoying behavior indeed. For repetitive work, one would prefer to set paste options for the session once, and then not be bothered anymore with dialogs and unexpected formatting of pasted content.

To import the text without breaking up the lines, disable all settings in the dialog. Next time you paste, the dialog will appear again, but settings are remembered. So it just takes the extra Enter on the keyboard to paste.

The text font of unformatted pasted text adopts to the current settings of the cells you are pasting in. You may want to either format the cells manually, or format the cells were you are going to paste with different font settings, or change the default font size of the spreadsheet by changing its "Default" style.


How can /etc/apt/sources.list.d object be removed?

Open /etc/apt/sources.list.d/cassandra.sources.list for editing in nano text editor and comment out the line that you want to disable by preceding it with a # character at the beginning of the line.

sudo nano /etc/apt/sources.list.d/cassandra.sources.list

Change this line:

deb http://www.apache.org/dist/cassandra/debian 311x main

So that it looks like this:

# deb http://www.apache.org/dist/cassandra/debian 311x main

Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.

Update the list of available software:

sudo apt update


How can I clear the console window after grep fills the screen?

If the console gets jammed/full then:

reset will clear and reset the state.  You can also cause this to be sent via the magic sequence Ctrl-v Esc c Enter
clear if you just want to clear the screen; you might combine it with the output you're after: clear ; grep -r …

(BTW, reboot is a separate command, so don't worry about accidentally rebooting your machine by using clear or reset!).


On which version of Debian, Ubuntu 17.04 is based on?

https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers describes nicely how Ubuntu is doing their very own things for many packages (like kernel or desktop) and others are transferred from Debian testing (release candidate) or Debian unstable (latest updates).

Debian unstable does not have any version. It is something like a rolling latest. Debian testing does not really have a version either, it just bears the name of the upcoming release and is mostly identical to unstable except for packages that got a bug report within the first 5 (or 10) days early evaluation period. And then at some point when packages are frozen for the release, testing and unstable diverge. The Ubuntu teams then cherry-pick from either testing or unstable.

To get an idea of what state Debian was at any particular point in time, please check out http://snapshot.debian.org/ .  It may be appropriate not to compare with the "release time" but to compare with the time that the Ubuntu release candidate was frozen.

Edit: I just found the thread Which Ubuntu version is equivalent to Debian Squeeze? that refers to the file /etc/debian_version that is kept in Ubuntu. It also shows an overview over the Debian distribution (still in testing state from what I summarised above) that contributed to a particular Ubuntu release.


overheating problem with ubuntu, lubuntu and point mate in my netbook medion akoya e1222

78 C is not overheating. According to the Intel thermal guidelines for the chip, 100 C is the maximum allowed temperature. If 78 C is the highest you are seeing, you are fine.

These netbooks are great, but have limitations. Low-power chips will generate heat, especially if you are doing a lot of intensive things that can add up: having lots of browser tabs open, downloading large files or a lot of small files in a row, watching a lot of YouTube videos in a row without a break, etc. Expect the temperature to go up when more tasks are given to the processor. Browser tabs in particular use way more resources than many people think.

I run several distros on a Lenovo S-10 with an N450 and 2 GB ram. Performance has been great with Unity through 12.10. Unity on 13.04 ran well enough, but was a little slow; so for 13.04 I use Lubuntu on that machine. My boot temperatures are in the low-60's, but going up to the 70's or even the 80's is normal. Try to close things and give the processor a break when that happens.


How to remove Ubuntu-desktop while keeping Xubuntu-desktop?

echo $DESKTOP_SESSION

to make sure that you are not on ubuntu-desktop

then

sudo apt purge ubuntu-desktop
sudo apt autoremove


How to run firefox as two instances with two icons in Ubuntu

You can create a new desktop shortcut, eg. new .desktop file. So let say that you have:
firefox2.desktop

[Desktop Entry]
.....
Exec= firefox -no-remote -P ProfileName

Icon=path/to/your/special/icon/or/com/location/

Also if you drop ProfileName you would get menu for creating new profile, or selecting old one.
Next step will be configuring taskbar, for example if you are using KDE Plasma, you can configure taskbar/icon-only taskbar to group of ungroup icons. For exact instructions you need to provide exact name of your DE and taskbar you are using(built-in , extension etc.) So icon on the desktop would be different, but taskbar icon will be the same(default or icon-theme based) but ungrouped.
For better answer(and if this is not your desired result), please provide which DE and taskbar are you using.
P.S. You got that error because you opened new Firefox instance with the same profile.
EDIT:
GNOME 3.18 - 3.38
You can use extension called Dash to Panel, it is very easy to configure it via Gnome Tweaks (you can install it  via  sudo apt install gnome-shell-extensions).
KDE PLASMA
For task manager you are probably using task manager extension or icon-only task manager, both of them con be configured via righ-click -> Configure  -> Behaviour-> group.


So, first, the icons I have made. And then I will show how I install them now.

I am using the dark theme right now, so the icons for the light theme are my first try and they are quite different from what I have for the dark theme.

The StackApplet icons have two states: off (no new messages) and on (there are new messages).

For Faenza Light Theme:

This is how it looked before and looks now (off and on):

This is not precisely consistent with the Faenza theme as the theme uses "flat grey" to indicate that there is no messages and "3D grey" to indicate that there are messages. I used colors to indicate new messages. Also, the image itself is neither exactly the stackoverflow nor stackexchange icon, something in between. As I said I do not use these icons now, so did not change anything.
The icons:

stackapplet.png:
stackapplet_grey.png:

For Faenza Dark Theme (I use these now):

This is how it looks now (off and on):

The icons (you may not see the second one, but believe me it is there :), and installed it looks exactly as shown above):

stackapplet.png:
stackapplet_grey.png:

To install the icons I put them in one folder and also the following script in the same folder:

note that this will delete the original icons, so that you might want to back up them first

#!/bin/bash --
sudo cp -f stackapplet.png /usr/share/pixmaps/stackapplet.png
sudo cp -f stackapplet_grey.png /usr/share/pixmaps/stackapplet_grey.png


YouTube Videos in Full Screen Stuttering, Jittering and 'Lagging' on Ubuntu 20.04

It seems that I'm also having this same issue. My computer has a ryzen 1800x with 16Gb of DDR4 ram and 1070 GPU.
Video playback is smooth in standard or theatrical mode but as soon as I make it full screen it will skip a lot of frames.
EDIT- Just updated GPU drivers and now it's running smoothly even in full screen. I was previously using generic drivers.


How to dual boot Windows 10, and Ubuntu on a HP Pavilion G6?

Before doing anything else, this answer might already help you.
1. EFI-Boot
You need to make sure the USB-drive boots in EFI-mode. If you can, disable legacy boot / legacy BIOS in your "BIOS".
Now boot from your USB-key and run the live-system. Inside the live-system open a terminal (ctrl+alt+t) and run efibootmgr. This should show you all EFI bootmanagers in your nvram and which one is the default. On my Mac it looks like this:
BootCurrent: 0001
BootOrder: 0001,0000,0080
Boot0000* ubuntu
Boot0001* rEFInd Boot Manager
Boot0080* Mac OS X
BootFFFF*

If you don't see a line for ubuntu or anything at all, your USB-key wasn't created to be EFI bootable and/or Ubuntu was not installed in EFI mode.
If you do see Ubuntu but it isn't the first in the bootorder, first try to boot it temporarily to try if grub works:
sudo efibootmgr --bootnext 0000

This tells the EFI to boot Ubuntu next and then revert to the default. The HEX-number might be different in your case. Refer to the output of efibootmgr.
To make the changes permanent, use efibootmgr to change the default boot order.
sudo efibootmgr --bootorder 0000,0001,0080

Adjust this to your needs as well.
2. Creating the USB-key the right way
If your USB-key didn't boot in EFI mode, you need to create it that way. First, lets figure out what kind of partitioning you use.
In your Disk Management tool in Windows, right-click on Disk 0, select Properties and go to the Volumes tab. The partition style entry will tell you whether you have an MBR or a GPT boot record. Make a note of this.
Download the Ubuntu ISO and create your USB-Stick using Rufus. In Rufus you can select the target partition and system type. Select GPT and EFI there (or MBR if that was your partitioning scheme).
3. Install
When installing, boot into the live-system first, run gparted to create at least 3 partitions: root (~20G), swap (~the size of your ram) and home (the rest). Use the "Something different" install option and pick our previously created partitions.


Where is Sun's JDK located on the filesystem?

From a terminal,
Confirm if the package is installed using.

sudo dpkg -l|grep -i sun-java6-jdk

List all the files installed by the package using

sudo dpkg -L  sun-java6-jdk

The listing of all files will help you to locate where directories/files installed by Ubuntu.


If you want to silence all output of the command executed by the retry function, change

"$@" && break || {

to:

"$@" &>/dev/null && break || {

in the script or simply give it along with the argument, e.g.:

retry "ping -q -c 1 $ip &>/dev/null"

If you however want to silence all output of the whole function, either comment out every echo line in your script and do the change explained above or append &>/dev/null on the command line, e.g.:

retry ping -q -c 1 $ip &>/dev/null


Why no love for Synapse?

Just like GNOME Do and similar launchers Synapse is ‘called’ using the keyboard combination Ctrl + Space. If you have a different shortcut hardwired into your actual synapses you can change it to any combination you like via the settings menu.

Features:

The default set of plugins shipped with Synapse are as follows: -

Applications – searches your desktop files Banshee – allows you to
play/enqueue music files in Banshee Commands – runs any command (ie.
“sudo apt-get update”) Devhelp – search documentation using Devhelp
Dictionary – find definitions of words Directory search – allows
opening of commonly used directories Gnome session – log out, shut
down, restart Hybrid search – complete Zeitgeist results by searching
for similar files Rhytmbox – play/enqueue music files in Rhythmbox
UPower – suspend & hibernate your computer Zeitgeist – search
anything logged by Zeitgeist But thanks to the Zeitgeist integration
pretty much any application can integrate with Synapse simply by
integrating with Zeitgeist.

Install:

sudo add-apt-repository ppa:synapse-core/ppa
sudo apt-get update && sudo apt-get install synapse


Live USB doesnt boot up! (Error installing Ubuntu on Lenovo Thinkpad E580)

Is the machine boot in the Grub menu? When the Ubuntu logo is shown, did you try to press enter to access some parameters? We choose the E585 model and must tweak the bootline to do a fresh install in the Grub menu. The tweak can be made in Win Ten also (Ubiquity).

Expert mode in the Ubuntu Logo or pressing e in the Grub menu in Try or Install Ubuntu.

You must add a space at the end of the linux line and type iommu=soft

nomodeset doesn't work here. There are several ivrs arguments that work, but not after Kernel 4.19.


Where does tracker-preferences store the configuration data?

I think I have found it, it is shown in the dconf (not gconf) tool under key org.freedesktop.tracker...

Some time I will have to find out what the difference between dconf and gconf is and why there are so many different ways how programs store configuration under Linux.


Network Interface on landscape-sysinfo (VPS)

landscape-sysinfo skips any network alias in the MOTD.

If you really want to have all alias listed, you could easily create your own MOTD script:

cat >/etc/update-motd.d/99-addr <<EOF
#!/bin/bash
ip -o addr show up scope global | awk '{print \$2"  "\$4}'
EOF
chmod +x /etc/update-motd.d/99-addr

How do I edit the ssh motd?


How do I remove files that I have downloaded from the Dash?

Open Privacy settings from Dash and turn off the record activity for files.