How do I fix Lenovo T61 unable to resume after suspend?

I have a Lenovo T61 laptop (Intel® Core™2 Duo CPU T7500 @ 2.20GHz × 2) running Ubuntu 12.04

When I upgraded to Ubuntu 12.04 the suspend function failed. It would suspend, but then when I attempted to resume, I would get a blank screen and no key combination did anything, so I would be forced to re-boot.

However, one dialogue in searching for a solution gave me a clue, it mentioned issues with the Nivida driver 302.17

So, to fix you need to revert back to an earlier version (that had previously worked for me) ... specifically 295.49.

Instructions:

Download 295.59 drivers and get it ready to run
 32 Bit i386

cd ~/; mkdir nvidia295.49; cd nvidia295.49/
wget -O NVIDIA-Linux-x86-295.49.run http://us.download.nvidia.com/XFree86/Linux-x86/295.49/NVIDIA-Linux-x86-295.49.run
chmod +x NVIDIA-Linux-x86-295.49.run

OR .. if you are 64 bit (amd64)

cd ~/; mkdir nvidia295.49; cd nvidia295.49/
wget -O NVIDIA-Linux-x86_64-295.49.run http://us.download.nvidia.com/XFree86/Linux-x86_64/295.49/NVIDIA-Linux-x86_64-295.49.run
chmod +x NVIDIA-Linux-x86_64-295.49.run

Disable nVidia Drivers from "Administration > Additional Drivers".
You can't install the drivers if X Server is up

reboot to Recovery Mode... that took me to the terminal ...
but ... this might also work ...

sudo service lightdm stop

Once the X server is down and you just have a terminal, run the installed
cd to the directory where you put it

cd ~/nvidia295.49

Now run it-

32 bit:

sudo sh ./NVIDIA-Linux-x86-295.49.run

or 64 bit:

sudo sh ./NVIDIA-Linux-x86_64-295.49.run

Work through the installer.
Reboot.


Can I get external monitors connected to docking station to work with my Lenovo T420s?

I have the same problem, and I have done some research and partially solved it. However, I am still working on a complete solution.

The hardware:

Thinkpad T420s with Nvidia 4200M + Intel HD 3000 graphics
Thinkpad dock.

The symptom:

T420s can't recognize the external display connecting to any DVI port on the dock.
It can recognize the external display through VGA port on the dock. However, the quality is poor.

The root cause:

T420s has Nvidia card connecting to DVI port while Intel card to VGA port on the dock.
Unlike Win 7, Ubuntu can't switch between Nvidia card and Intel card. By default, only Intel card is being used.

The solution:

Put T420s to dock and connect the external display to DVI port.
Goto BIOS, find "Display", change the configuration to "Discrete Card" and "Disable Nvidia Optimus". Now T420s is forced to use Nvidia card.
Download and install Nvidia driver for Linux. Google the detailed instructions.
After the installation, Do "sudo nvidia-settings".
In the pop-up window, "X Server Display Configuration", Click "Detect Displays". You will be able to see the external display now.
In the same page, change Configuration to "TwinView", Resolution "Auto" or the native resolution of T420s, say, 1600x900.
Click "Apply", you will be able to see the external display desktop.
Click "Save to X Configuration File". A new /etc/X11/xorg.conf will be created.

Remaining Issues to Resolve

There are still a couple of issues. I'm still working on it. Most likely, a proper xorg.conf will solve them.

Hope it helps.


I searched a little further and found THIS topic and after following the instructions to remove the .Desktop file it has reset back to the original right-click menu.

Ubuntu 14.04 / Chrome-stable


How to find out if Laptop is HDMI-CEC capable?

Try the following,

sudo apt-get install cec-utils libcec-dev

and then,

cec-client -l

It should list the devices that support it.

Please check the link/answer from superuser.com for some more information,

source:
https://superuser.com/questions/524759/determine-the-hdmi-controller-from-the-command-line


After executing a command in the terminal, I sometimes can't execute another

If what you're really trying to do is start a GUI program from the terminal, you may prefer something like

geany filename.php &

which will start it in the background, since it doesn't need the terminal for anything.  This may also work for the node.js application, if it doesn't require the terminal for anything.

If they're still running when you close the terminal, it will complain.  If you really want them to stick around after the terminal exits, use disown.


ubuntu 18.04 "Copy Paste" from ext4 to NTFS not possible

I can confirm the same. When Fast boot is turned on in Win 10, I could only copy from NTFS partition, but can't paste in 18.04 (better than 16.04. In 16.04 it neither could read/write while fast boot is turned on!)

This happens when you shut down Windows 10. If the fast boot is on in Win 10, then during shutting down, Windows does not shut down HDD properly. It only Hibernates HDD (Windows provided this feature to increase boot-up speed & to increase security).
So at first turn off the "Fast boot" option in Power management in Win 10 and then shut down Windows 10. And then in Linux you can read/write in NTFS partition of HDD.


Action org.freedesktop.systemtoolsbackends.set is not registered! may be you are missing the .policy file declaring this polkit action

Your command works fine in machine (Ubuntu 16.04), let's track it:

~$ pkcheck --action-id org.freedesktop.systemtoolsbackends.set --allow-user-interaction --process $(pidof -s bash)
polkit\56retains_authorization_after_challenge=true
polkit\56temporary_authorization_id=tmpauthz1

~$ grep -r "org.freedesktop.systemtoolsbackends.set" /usr/share/polkit-1/actions/
/usr/share/polkit-1/actions/org.freedesktop.SystemToolsBackends.policy:  <action id="org.freedesktop.systemtoolsbackends.set">

~$ dpkg -S /usr/share/polkit-1/actions/org.freedesktop.SystemToolsBackends.policy
system-tools-backends: /usr/share/polkit-1/actions/org.freedesktop.SystemToolsBackends.policy

To confirm the issue check if you have it installed using apt-cache policy system-tools-backends

To fix it try reinstalling its package:

sudo apt-get install --reinstall system-tools-backends


Mounted hard drive appearing empty and lacking permisions

I fixed the problem by replacing the SATA cable. I think if anyone runs into the issue and has similar test results this would be a good place to start. The fact that it showed the HDD but had no transfer speeds is possibly a good identifier that the SATA cable is broken or perhaps just got jiggled loose.

Probably also worth investing in a backup hard-drive for the future as well.

Hope this helps someone in the future, cheers.

EDIT: Also I realize that based on the solution it was not a UBUNTU issue, bu someone that runs into this in the future may falsely identify it as one as I did. I feel because of that it has merit to stay up but if requested I can delete the post.


Make USB Pendrive/storage device write protected

If you always use mount to mount USB and never a GUI explorer you can mount using :
sudo mount -o ro,noload /dev/xxx /media/xxx

Source


How can I reinstall GRUB to the EFI partition?

Reinstall the GRUB boot loader to your Ubuntu installation in EFI mode this way ...
Boot from the Ubuntu installation medium and select 'Try Ubuntu without installing'.
(Boot your install medium in EFI mode, select the Ubuntu entry with UEFI in front.)
Once you are on the Live desktop, open a terminal and execute these commands :
sudo mount /dev/sdXY /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub

Note : sdX = disk | sdXX = efi partition | sdXY = system partition
To identify the partitions use GParted, the tool is included in the installation medium.
After having run the commands GRUB will be installed in the separate EFI partition.


Could not enter folder /usr/share/icons/XX Error after folder copy

I forget which user nautilus (the file browser) runs as, but it is not root, and since (most) everything under /usr is owned by root (use ls -l on files/directories in question), the file browser won't be able to display the contents.


SSD options in /etc/fstab stop machine from booting

For my own SSD I use discard, noatime which seems to work, but with the /etc/fstab you have to make sure that no spelling errors are present or it can halt boot-up...

During initial boot hold down SHIFT key and go into recovery mode and from there you can enable read/write by selecting fix repo's and then drop to prompt to fix your /etc/fstab file...


Dual Boot: Access windows files from ubuntu

I experienced the same problem mounting my Windows (C:) drive in Ubuntu 18.04.

The files I was attempting to open were in my Dropbox folder on my Windows partition. Dropbox allows you to store files in the cloud and sync on the fly.

This is done by making links to symbolic links. Apparently Ubuntu cannot open these links (or similar links from cloud services).

I fixed this by making sure all files I wanted were on my local machine. Hope this helps.


I got this to work on Ubuntu 20.04 by downloading the .deb file on https://launchpad.net/ubuntu/cosmic/amd64/vdpau-va-driver/0.7.4-6ubuntu1 and installing it. Either double click the .deb file or run sudo dpkg -i path/to/file.deb.
Specifically, it's the vdpau-va-driver_0.7.4-6ubuntu1_amd64.deb file under Downloadable Files section.


Compile error when trying to install qjournalctl

It seems that qjournalctl is based on Qt5, so we need to install it:

sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential

Then on 16.04 LTS I can compile version 0.21:

cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl

I can't compile 0.3, 0.4 and master because of compilation error:

...
src/mainwindow.cpp:61:24: error: ‘nullptr’ was not declared in this scope
   message_box.critical(nullptr, "Error", "No boots have been found :\n"+process.readAllStandardError());
...

I reported bug #10 upstream to github about this problem.
Note: qjournalctl compiles normally on 18.04 LTS (development version).


How do I complete clean the apt-get database to be like the moment it was installed?

In order to do this there is a pretty handy webapp available called the “Ubuntu Sources List Generator”. Click here please http://repogen.simplylinux.ch/

By moving through each section it enables you to select your country, release and then check each repository you want to add, not only does it support all the official ones for things like security and updates, it also allows for 3rd party repos such as Banshee, Chromium, Conky and VLC amongst a bunch others. Once you have what you want hit generate and it’ll create a nice, comment, new sources.list file ready for you to replace your old one with.

You may want to backup your old sources.list just in case with the following command:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bkup

Once you have that you can open the sources.list and simply paste the new one in from the repogen:

sudo gedit /etc/apt/sources.list

Paste, Save and Close the file and now you should paste the generated GPG keys, found just below the generated sources.list file, into your terminal.

Everything should be back to default and allow you to once again update everything.

source and more info


Meson can't find accountsservice when it is clearly installed

From your link:

  You'll need the following dependencies:

...
libaccountsservice-dev
...

So sudo apt install accountsservice needs to be sudo apt install libaccountsservice-dev.


Unfortunately, there is no easy "one step solution" to merging partitions. Fortunately, your partition is pretty small. It'll be easy to combine the two.

Mount /dev/sdc2 (the smaller partition).
Copy all of its files to the Desktop or another temporary location.
In GParted, delete that partition, and then extend out /dev/sdc1 to use all available free space.
Mount the newly-resized /dev/sdc1 and copy all files from your desktop back to the SD card.

If the partitions are empty (or you don't care about losing what's on /dev/sdc2), you can simply delete the partition then resize /dev/sdc1 out. Note that you will lose anything on that partition.


tesselimage

Is part of a screensaver program. Probably gnome-screensaver and if not likely xscreensaver.

shadebobs

Is something to do with "oscilating vapor trails" so I assume is part of tesselimage.


How come the locate command doesn't find obvious files?

updatedb only runs once a day, you need to run it with root privileges to find recent files.


How do I install updates after dismissing the popup?

It's called "Software Updater". You can open it from the dash:

It will then check for updates and let you install them, as well as change update related settings.


How to get those "glass" title bar buttons (Lucid's Ambiance theme)

What you see here is an older default Ubuntu theme (known as "Ambiance"). This was for a release about a year and a half ago.

You can install this on Ubuntu 11.10; however, because of some underlying groundwork, You can't use the whole thing. For instance, here's a picture of my desktop using the theme:

You may notice that, when maximized, the buttons revert back to their old style. This is because this old theme hasn't been ported to the newer groundwork that was laid by Ubuntu: Since the current theme is the one used, it's the one updated :).

1) Download the "lucid-updates" deb-package from here:

http://packages.ubuntu.com/search?searchon=names&keywords=light-themes

You'll have to click lucid-updates, then "all" under "architecture", then a mirror to download the package from.

2) Right-click on the deb-package, choose "Extract Here".

3) In the extracted folder, browse to "usr/share/themes"

4) Rename that folder into something unique, like "Old Ambiance"

5) Here's the tricky part. You're going to need to move this into a system folder. Press +F2 to activate a command launcher. type in "gksu nautilus", then press enter. It will ask for your password and then pop another window up.

6) From the sidebar, press "File System", then navigate to usr/share/themes. You should see a handful of folders, such as Ambiance and Radiance.

7) Using that same window (you have to use the one you elevated permissions to), open a new tab by pressing +t, click on "File System" again, then navigate to home/[YourUserName] and wherever your newly extracted/renamed folder (i.e. "Old Ambiance") is. Drag and drop that folder into the other tab so it'll plop right into the folder

8) Install Ubuntu Tweak from the software center

9) Launch the program (the program's name is shown as "Advanced Settings") and navigate to "Themes"

10) The only one you'll be able to change is "Window Theme". Change that to "Ambiance Old"

And that's it! You're done.

Give me a comment if you have questions/something doesn't work. Good luck.

source: http://www.tuxgarage.com/2011/06/install-older-newer-ambiance-radiance.html
Revised to make a little easier (IMO).


How do I stop the Windows Ubuntu terminal from disconnecting from SSH?

Look in /etc/ssh/sshd_config on the linux server.

You can change the values of ClientAliveCountMax and ClientAliveInterval to prevent it from disconnecting.

You will need root access, and after changing values you will need to systemctl restart sshd

Be careful if you have an invalid sshd_config and restart sshd you may need console access.

Alternatively some SSH clients can send characters automatically to the server to keep it from disconnecting.

You can also learn tmux, which is a great tool for preventing issues of losing work.


Help with Ubuntu Installation (14.04.3 LTS)

The 1st option didn't work for you, and I think that might be because of the installation media's fault. Anyway, I'll go on to the 3rd option.

First you will need to have free space. So shrink some hard disk and leave about 12 or 15 GB at least. You can achieve that with windows built-in Disk Management Utility which can be called by typing diskmgmt.msc in run box. And proceed to shrink the hard disk.

Creating Swap space. After you have some free space, click on Free Space And click on the + sign which will be on bottom left corner (if there is no + sign, then there'll probably be Add Button. And swap space should be about the size of your RAM, if your RAM is 8 GB, 4 GB of swap should be enough. And choose paritition type as Swap Space
Creating root partition. This is the partition where the OS will be
installed. Create a new partition, as for type, use either ext3 or
ext4. And in the mount location, choose /.
Creating home partition. This is optional step. But it's a good idea
to have another partition for home directory, in case something
wrong with your ubuntu os and you can chill, knowing you saved your
4000 words essay inside home directory. If you want to do it then create another partition, use ext3 or ext4 and choose mount point as /home

And that's basically it. You can continue installation. You might have to select the / partition though.

Btw, it would help if you can provide the screenshots or images in your question.


A basic search results that the ImageDir is /usr/share/plymouth/themes/spinner

[Plymouth Theme]
Name=BGRT
Description=Jimmac's spinner theme using the ACPI BGRT graphics as background
ModuleName=two-step

[two-step]
Font=Ubuntu 12
TitleFont=Ubuntu Light 30
ImageDir=/usr/share/plymouth/themes/spinner

It is not good idea to replace lot of Images of this spinner..

Instead find out a simple Plymouth theme which uses single Image and replace it..

If you want to change Ubuntu logo..

this is the Image file

/usr/share/plymouth/themes/spinner/watermark.png


I was using the file from my pendrive (FAT32), that could be the problem maybe.

Almost definitely. We have questions on executing on FAT-based filesystems dating right back to the start of Ask Ubuntu.

Simply put, that's probably your problem if you're using the default mount options and the best fix is to switch to a better filesystem. Ext4, even NTFS... Just something mildly POSIX compliant that supports execute bits. Or you can hack around it and manually mount all the files as 755 (eugh).

You can sidestep the permissions framework by executing the file with the ld linker system. It's a bit messy but it should work for a binary file (probably won't work on scripts):

/lib64/ld-linux-x86-64.so.2 /path/to/64bit-binary
/lib/ld-linux.so.2 /path/to/32bit-binary

If it's a script you can also load a file through its interpreter's binary (rather than relying on a shebang):

sh /path/to/script.sh
python /path/to/script.py


Which filesystem should I use to format my external backup HDD? btrfs?

According to the principle designer of BTRFS, BTRFS still has some issues as filesystems become full. The send/receive functionality to send/receive snapshot differences for offsite backup also is not fully functional yet, and online deduplication (useful for backing up virtual machine images) is going to happen maybe for the 3.11 kernel (not yet released). raidz support was new for 3.10 and I haven't had a chance to test it yet, I may do that this evening. All in all, BTRFS is still under very  active development, and I prefer to wait until it's finished (or at least not getting major functionality improvements with each kernel release!) before actually using it in production.

The advantage of using BTRFS or ZFS on an external enclosure used for rsync-based backups is that you can make snapshots via e.g. a daily cron job, and then do time travel to retrieve old data if necessary (if, say, files have disappeared from your hard drive for unknown reasons and you need to get them back from past backups). I use a USB3 enclosure with ZFSonLinux for that purpose because I need de-duplication support for virtual machines (since the big .img file is always different from the perspective of rsync, de-duplication means that only the actual changed blocks in the .img file get changed on the backup rather than multiple copies of huge 30gb files). Hopefully when the 3.12 kernel comes out the BTRFS deduplication support will be mature enough that I can migrate away from ZFS for this application -- ZFS is cool and all, but the fact that it is not integrated with the Linux kernel causes issues (e.g., I use a Centos 6.4 virtual machine to do the backups because ZFS won't compile against the 3.10 kernel).

For backing up Linux filesystems, create a snapshot on your BTRFS (or LVM) and mount the snapshot (if LVM) and back it up via rsync. That assures that you'll have a consistent backup as of the snapshot time. Then when finished with the snapshot, delete it. (More important with LVM since snapshots have a significant performance impact there). My cron script that fires off the backup job also does the rotation of the snapshots (daily, weekly, monthly) on my ZFS backup filesystem before it starts actually backing up, so that I can time travel if needed.

As far as reliability, hoary old ext4 is probably the most reliable filesystem because of the way it statically allocates structures on disk, meaning you can always find them and at least get most of your data back if things crash badly. The downside is poor performance on edge cases of very large files (where the way inode chain blocks work make random access in those files very slow), issues with large filesystems (which are very slow to create and fsck), or the edge case of large numbers of small files (which exhaust the inode table). I personally continue to run ext4 on top of LVM on top of RAID for my root filesystems and use other filesystems either for performance reasons or for functionality reasons as required.


How to limit the amount of time SCP tries to connect for?

You can pass along SSH options, like -o ConnectTimeout=10 to timeout after 10 seconds.

But if you're copying multiple files, rsync might be worth looking at. And you'd probably use --contimeout 10 for an rsync command.


Apple_Thunderbolt_Display as 2nd Monitor

Same boat.  We're out of luck, probably for good.  Details here:  https://github.com/intel/thunderbolt-software-user-space/issues/66#issuecomment-524586649


Is auto installation through preseed files still present in ubuntu 20.04?

Yes. If you are asking about the desktop.

Only the server version started using a new method (18.04 got a new installer for the server version and we lost preseeding back then). The desktop, I hope, will follow this new method as it would make it 100% compatible with our installer. [More on this][1].


Its probably because the WIFI u connected to has no internet access. Check with your ISP.


compiz - ctrl alt shift doesn't move windows anymore

As cube rotation with the window is still broken you can use a workaround. In the properties of the cube rotation plugin disable the shortcuts Ctrl+Alt+Shift+Left/Right. Activate Put plugin. Then in its properties, in "Put to adjacent viewport" section set your shortcuts for the Left and Right viewports.
Instead of moving to new viewport with the window simultaneously now the window will move to new viewport and then the viewport will promptly follow the window. Almost the same functionality.

BTW, activation of some plugins in my system (Ubuntu 12.04.2 LTS, GNOME Classic session and Compiz 0.9.7.12-0ubuntu2) with ccsm crushed my Compiz and cleared all checkboxes of my active plugins. Put was among them. In order to activate this plugin in more safe way you can edit the file ~/.gconf/apps/compiz-1/general/screen0/options/%gconf.xml and add into it some lines directly:

<li type="string">
    <stringvalue>put</stringvalue>
</li>

Then reboot your system.
P.S. If you are not using Gnome Classic try another locations to find your Compiz config file: https://askubuntu.com/a/223905


If you are using the Brother printer installation package (with a name something like linux-brprinter-installer-2.2.1-1) you are asked to "Provide a URI?", the answer to that is yes.

You will then get a list of options (on my system around 14 or so):

If the printer is switched on (if it isn't switch it on and start again!) one of the options will be (something like)

12: socket://192.168.1.254

and you'll be asked to select the number of destination device. Enter the option number (in this case 12) and the installation will continue.
If that option is not available another option will be (something like)

13 (I): Specify IP address

Type in the option number (here 13) and then the IP address of the printer (which you'll probably be able to get from the printer) and the installation will continue.


How to put "gnome-panel" like icons in GNOME 3?

Ubuntu uses the Unity interface on top of Gnome 3 by default.

Whether you are using Unity or you have switched to gnome-shell, the launcher icons on your old gnome-panel have now been replaced by icons on a panel along the left hand side, known as the "launcher".

You can drag application icons onto there from within the dock (ie, searching for an application, then dragging the found icon onto the left panel).  In addition, launchers you had on your panel back in Gnome 2 should have been migrated to Unity's new launcher if you had set them up manually.

Unfortunately, it is not possible to add application launcher icons to the top panel, nor is it possible to change the position or appearance of the launcher panel that appears on the left (or, at least, not much).

If you don't like the Unity interface, there are others.  I would encourage you to get used to it, because it should be well-supported by Ubuntu people.  However, 11.10 allows you to install the gnome-session-fallback package, which gives you an alternative login option that allows you to have the old gnome-panel back.

These similar solutions may help


WiFi dropping at random times (BCM43142)

After a lot of surfing found a fix for problem with the Broadcom drivers.

Steps you have to take for fixing this problem (You can find original answer here nm_geo on ubuntu forums):

(You may need to install synaptic or your favorite package manager.)

Uninstall the bcmwl-kernel-source package by issuing the following command on a terminal:

sudo apt-get remove bcmwl-kernel-source

Make sure that the firmware-b43-installer and the b43-fwcutter packages are installed (of course you will need internet by others means):

sudo apt-get install firmware-b43-installer b43-fwcutter

Type into a terminal:

cat /etc/modprobe.d/* | egrep 'bcm'

(You may want to copy this) and see if the term 'blacklist bcm43xx' is there.
If it is, type cd /etc/modprobe.d/ and then sudo gedit blacklist.conf

Put a # in front of the line: blacklist bcm43xx

Then save the file.
Reboot

After this the wireless had to be unblocked by rfkill:
  How to unblock something listed in rfkill?


The Window of CLion/NetBeans freezes as soon as I click any button

I meet the same problem with you, and i find the problem is caused by the sogoupinyin input method. You can use other input methods to avoid this problem.
Or you can choose to install ubuntu kylin version of sogou input method, will not meet this problem.


How do I detect if the current session is an SSH session via bash?

A quick way would be check if the SSH_TTY variable is set:

$ ssh lab
$ echo $SSH_TTY
/dev/pts/22

There are a few SSH-related variables set. Two others are SSH_CLIENT and SSH_CONNECTION. Either of them could be used as well.

Another way would be to check if an ancestor process is the sshd daemon:

$ pstree -ps $$
init(1)───sshd(1170)───sshd(14153)───sshd(14225)───bash(24232)───pstree(27281)

Relevant reading:

How can I detect if the shell is controlled from SSH? - a well-answered question on Unix & Linux.


I would execute the following, since you're sounding like you might require the full desktop.

sudo apt-get install lubuntu-desktop


Font corruption Ubuntu 12.04 Mirosoft Office 2007 / Google earth & Adobe

i can answer my own question.

it appears that google earth conflicts with crossover when using MS Office 2007.

all i have to do to fix the issue is simply close out Google Earth and all is good.


steam can't use EXT4 partition mounted with write permissions

You say it's mounted with rw permissions, but Steam is asking for execute permissions. Use the exec option while mounting it. (Or the defaults option, which covers most common options:  rw,suid,dev,exec,auto,nouser,async).


Recurring problems with Login Loops ubuntu 20.10

For those who maybe interested in this. If you suddenly experience Login loops with Ubuntu 20.04 or 20.10.
I was actually unable to find any ways to resolve it.  Not matter what I tried in tty etc. What I ended up doing so just basically creating a new account and the copy the details across from the old account to the new account.
However, I have also updated to the Ubuntu 21.04, and now bizarrely I am now able to log into my old account and use it.


How to configure SFLPhone or other softphine with german telekom?

You can try Ekiga instead. It has less options and probably will solve your issue.

You will only need to write your Registrar (tel.t-online.de), username, and password.

If it does not connect then try setting STUN or Proxy in Preferences.


Can someone recommend a Program able to show and execute XQuery and XPath on a XML document?

I would look at one or more of the following packages:

apt-cache search xquery


Use text mode - Clt+Alt+F1 to login with text mode for further investigation. If yo can go to text mode, there is some problem with graphics.
Have you been using the 13.10 for sometime and then this happened or right after installation ?


Your Dell isn't all that old.  The integrated graphics ought to work fine on Ubuntu.

I work on old gear all the time.  The first thing I do when I get a new-to-me box is upgrade the BIOS.  Since your current setup isn't working all that well for you, I'd do that as a first step.

I didn't go on to the Dell web site to look at your particular model but there may be graphics related updates and release notes there that indicate problems with that particular mobo.

Assuming your issue isn't a design problem that Dell has an upgrade for, I'd slip in a known good PCI graphics card to see if that fixes your problem.  Used graphics cards can be had from recyclers for around $5.

Not sure what you mean by a DVI out from a PCI adapter.  Perhaps you already did the above-mentioned step.

Of course video cables and the monitor itself should be looked at and eliminated as a potential problem.

Seems pretty unlikely that the problem you have is Ubuntu related but I suppose anything is possible.  16.04 LTS has served me very well for quite a long time.  On many computers using many different graphics setups.  Zero problems so far.


Remove string "please enter passpharase for disk..."

UPDATE

As May 5 2016 Ubuntu 16.04LTS

The path to plymouth has changed from:

  /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script

to

  /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script

OK I found how to do it!

WARNING: Doing this will hide the GUI input for the passphrase at the startup splash screen and also the messages "please enter passphrase...", etc.

sudo nano /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script

go around line 614 find this lines and comment them

Plymouth.SetDisplayPasswordFunction (display_password_callback);
Plymouth.SetMessageFunction (message_callback);

it should end looking like this:

#custom mod (uncomment the two lines below to back to stock)
#Plymouth.SetDisplayPasswordFunction (display_password_callback);
#Plymouth.SetMessageFunction (message_callback);

save it, and run this

update-initramfs -u

Reset and is done! this way you can say your computer is broken (there will be a frozen loading screen with no GUI passphrase prompt indications) and 98% of the world will buy it, ofc if the laptop is audited by someone who really knows what he is doing it will only make things worse lol but chances are slim to none


Install options/procedures and portability

In case of Ubuntu you can install a program from a .deb file. To install a package use in terminal,

sudo dpkg -i /path/to/<package>.deb

You can download, store, distribute the .deb files. But to install a program from a .deb file you need to have all its dependencies also. The dependencies are available in the form of .deb files.

How to get the .deb files

You can go to packages.ubuntu.com search for desired package and download them. Don't forget to choose correct distribution and architecture before you download. There you can find all the dependencies for a particular package. You need to download them if needed (if not installed already).

To check a package is installed on your system, type in terminal,

apt-cache policy <package_name>

When a package and its dependencies are in your hand you need to install the dependencies before you install the main package.

How to get .deb files from your own system source

When you install a program with apt or Software center the .deb files along with its dependencies automatically stored in /var/cache/apt/archives. You can have the deb files from there also.

Sometimes the files get deleted by user or somehow. You can download all the packages that are already installed again using this command below,

dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only

To re-download a particular package use,

sudo apt-get -y install --reinstall --download-only <package_name>


Can't start MongoDB, mongod is always stop/waiting

This looks like premissions issue, please do:

sudo chown whoami /tmp/mongodb-27017.sock

This will set premissions straight as You need.


How can I open a terminal in the desktop directory?

Simply add the following to ~/.bashrc

if [[ $PWD == $(realpath ~) ]]; then
    cd ~/Desktop/
fi

My solution changes the directory to the desktop even when you press ctrl + alt + t
(default keyboard shortcut to open terminal)

My solution check the working directory and if it is the same as ~, then cd to Desktop

Note: Macerarius' solution always opens in a certain path
(even when you click "Open in Terminal" inside a folder in Nautilus)


What will I break if I install a newer version of a library?

After asking in a couple other places and doing some digging based on the partial answers I got in one of them (the Kerbal Space Program forums, about the program for which an add-on prompted the question in the first place), I found a solution.

Although the required version of libc++ and libc++abi isn't available from any of the Canonical repositories in a form compatible with Xenial, I was able to find a ppa for llvm-toolchain-8 that was backported to Ubuntu 16.04.  It doesn't completely support clang 8 because a couple minor items had to be disabled for compatibility, but it does include libc++-8-dev and libc++abi-8-dev, the library version required by the very newest (released today) version of the Principia add-on for KSP.  And, because the libraries were built on Ubuntu 16.04, they are compatible with the install I already have; I've installed them, and verified both that my Ubuntu continues to run, and that Principia works in my KSP game.

Problem solved, at least for another year and a half.


Unable to mount/access phone after upgrade to Ubuntu 14.04

Problems like this happen a lot during an upgrade. I recommend that you simply install 14.04 over your existing setup. You'll want to backup your /home directory but most installs will save that.
The reason this happens IMHO is when the config files are updating they don't always update correctly. I've actually seen Linuxes where this is a listed "upgrade method".


You can do that like this:

sed -i 's/^2\ /2::/' file.txt

This will replace the beginning of each line 2 with 2:: and writing it back into the input file.


I recommend you use " touchpad-indicator" - an indicator applet for easily managing your touchpad. Installation instructions are given in this link.

http://www.webupd8.org/2011/02/touchpad-indicator-now-automatically.html


Netgear WiFi Adapter not picking up wifi on channel 12 or 13

I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.


How to resize partition on new installation to make room for additional OS?

The reason for that you try to resize system sda and system is running.

To solve that:

Make bootable usb and boot .
Instead of install -> try ubuntu .
Open gparted installed by default and resize.


No permission to install anything from ubuntu software center

I take it this is your first time running a Chroot you've installed on your Chromebook? In other words, this is the first time you've encountered this problem, yes?

In short, you'll have to use the gksu, instead of sudo, whenever you require the graphical interface to grant you the permissions you seek. It'll be simple, and it'll be quic--

Until someone more knowledgable than myself graces you with their presence, in the meantime, open up that terminal, and let's get you going with some software installations.

Inside a terminal type the following command:

gksu gnome-software

This will prompt you to enter your password, and then the gnome software store will run, with you having all them sweet, juicy permissiones!

You'll have to run the software store using this command every time you wish to install software from it, otherwise, using "sudo" inside a term to install programs will work as usual.

This won't by any means break your desktop, so you're totally good.
It is, however, worth mentioning that there are things one should be aware of when running gksu, but I'll let the next bloak explain that.


I've just had to add

/srv/share/hdd  192.168.0.0/24(rw,nohide,insecure,no_subtree_check,sync)

in /etc/exports and it works.

There is an option crossmount to add in exports, but I didn't manage to get it work.


apt-get update error unable to install mongo DB

Try this code to solve your problem. This works for me:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update


Installing The Stress Terminal UI, s-tui

You need to install the pip tool for python 2 with

sudo apt install python-pip

then you use that command of yours!


accidentally disabled CTRL + C in terminal, how to restore?

Check the output of stty -a:
sh@balrog:~$ stty -a
speed 38400 baud; rows 32; columns 100; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>;
^^^^^^^^^
This is the relevant part

If it doesn't say intr = ^C, you managed to change your terminal settings.
stty can also change the key that sends SIGINT if that's what you want (but I wouldn't recommend it because you'll get all tangled up in nonstandard settings).


Ubuntu 14.04, problem when install gstreamer1.0-libav, unmet dependencies

Omg.

$ sudo apt-get install libopus0
Suggested packages:
  opus-tools
The following packages will be REMOVED:
  gstreamer1.0-libav:i386 libavcodec54:i386 libavformat54:i386 libopus0:i386
The following NEW packages will be installed:
  libopus0

$ sudo apt-get install gstreamer1.0-libav
The following NEW packages will be installed:
  gstreamer1.0-libav libavcodec54 libavformat54
0 upgraded, 3 newly installed, 0 to remove and 18 not upgraded

Now it works... Don't know why... But I'm happy.


Ubuntu 18.04 audio disappeared after update

So to answer my own question. After a lot of digging I finally managed to get my audio working again. After finding this thread https://bugs.archlinux.org/task/64720 I tried temporarily adding the boot parameter snd_hda_intel.dmic_detect=0 by following this guide: How do I add a kernel boot parameter? to verify that it worked. It solved my problem, and I added the key permanently now, and the fix seems to persist after reboot.


First open a terminal using ctrl + alt + T. Then type in the command:
sudo apt-get install nvidia-current

After it's installed, reboot.
Mouse sensitivity can be adjusted by going to System Settings > Mouse & Touchpad and dragging the Pointer speed slider.
You can find the System Settings Application in the launcher at the left of the screen or by searching for it in the Dash (Press  to launch the dash.)


I had the same problem and was able to get it to work by installing pavucontrol.

sudo apt-get install pavucontrol

Then change the port to microphone(unplugged) from internal microphone in the input devices tab.

I found the solution here - http://ubuntuforums.org/showthread.php?t=2203855


How can I make a specific root folder accessible for a user?

You shouldn't access directly to this data folder, and file modification will break your nextcloud instance as it store many meta data (file size, file hash, etc...) into a database.

If you need to share a folder between Nextcloud and a local user, you should use External Storage which is a Nextcloud module.

https://docs.nextcloud.com/server/14/admin_manual/configuration_files/external_storage_configuration_gui.html

With this module, you will be able to add an external storage as folder (choose Local as Storage) and choose any folder on your hard drive where you will store your data.


MAAS: disable iSCSI, or require authentication?

MAAS uses the ISCSI targets for ephemeral Ubuntu booting. Ephemeral Ubuntu booting is done when a machine is being enlisted, commissioned, deployed, and disk erased. Removing these targets will cause MAAS to break and prevent machine deployment.

You can either modify tgt to listen only on the IP address that machines use to talk to MAAS or block tgt ports on your public interface with iptables.


How to find all the used IP addresses by Ubuntu systems on a network?

You can use nmap to get a list of ip's that are up:

nmap -sP 10.10.10.0/24

To find out if they are Ubuntu systems is harder. You can use a portscan (-sS, -sT or -sF for instance) and the -O option.

This does require you to have admin privileges, so you'd do something like

sudo nmap -sT -O  10.10.10.0/24

For ranges (the 0/24 part) and the options, you can check out the manpage of nmap.


Way to remove unwanted/unused wifi networks from Network Indicator Menu? [NOT a duplicate]

If you wish to change to manual methods, I suggest you open a terminal and do:

sudo -H gedit /etc/network/interfaces

Use nano or kate or leafpad if you don't have the text editor gedit. Amend the file to:

auto lo
iface lo inet loopback

#auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid <your_network>
wpa-psk <your_key_in_clear_text>

Proofread carefully, save and close the text editor.

Notice I have commented out the 'auto eth0' line. This implies you will use wireless by default. The system will only start wireless on boot. If you wish to stop wireless and start ethernet, in a terminal:

sudo ifdown wlan0 && sudo ifup -v eth0

The -v for verbose will show enough information for you to see that the system connects. To return to wireless is the reverse.

I do not believe NM turns off the wireless radio; it merely disconnects.

Test to be sure it is working as expected.

sudo service network-manager restart
sudo ifdown wlan0 && sudo ifup -v wlan0

It may take a reboot.

Once you are satisfied that it's correct, you may then remove NM:

sudo apt-get purge network-manager
sudo apt-get autoremove


Error: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable' invalid

Docker doesn't exist for 19.10 yet, and no eoan repository exists yet, so you will need to use the 19.04 version.

In your deb statement, change the Ubuntu version like so:

Change:

deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable

To:

deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable


If you are trying to use an SSH connection with an HTTP proxy, it won't work. Github offers Git over HTTPS as well. So try:

git clone https://github.com/myusername/myrepo.git


Can I install ubuntu without windows mac or linux and using a hard disk drive?

Does the error message say something along the lines of "Reboot and select proper boot device or insert boot media in selected boot device and press a key"? If so, try flipping your laptop over and popping the battery out for a few minutes, then put it back in and turn it on. I get that error from time to time and that seems to fix it.

But to actually answer your question, yes you should be able to. So long as your computer supports booting from a cd or USB, and you've properly formatted it (if you don't know how, you'd need to borrow a friends computer to do this though). Just stick it in, open your BIOS, and prioritize CD or USB, whatever you're using, above everything else.


In the Unity applications dash look for "Disks". It's a disk manager that you can use to apply a partition table (choose mbr/ms-dos), create a partition, and add a filesystem to your second hard drive. Then you should be able to mount the partition, and see it.


Unable to use fingerprint sensor on asus vivobook pro

Actually, lsusb command in some case, as for my ASUS VivoBook PRO can show no info about the touchpad / fingerprint reader.
Anyway Device ID can be acquired from commands:
cat /proc/bus/input/devices | grep -i "Mouse\|Touchpad"

xinput list | grep -i "Mouse\|Touchpad"

Then you can check if your device has a supported driver for libprint here:
https://fprint.freedesktop.org/supported-devices.html
Unfortunately although touchpad  works well even , fingerprint reader integrated in the touchpad of Asus Vivobook S15 is neither recognized in ubuntu as an USB device (lsusb) nor as a libfprint device (fingerprint-gui -d).
If not present in the list  above you cannot use it with ubuntu until driver will be implemented to work with libprint.


Ubunto system error during "apt install" seems to have left a mess

I ran into the same problem on sudo apt install r-base. This has a dependency on libjpeg-turbo8-dev but the installed libjpeg9-dev caused a conflict. The following fixed it for me
sudo dpkg -r libjpeg9-dev
sudo apt --fix-broken install


Remove everything to do with the Nvidia proprietary drivers:

sudo bash NVIDIA-Linux-x86_64-352.21.run --uninstal

Remove xserver settings:

sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv

Reinstall the above (not proprietary):

sudo apt-get install nvidia-common
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core

Reconfigure xserver:

sudo dpkg-reconfigure xserver-xorg


The problem is that your SD is formatted with exFAT, which Ubuntu does not support natively. You have to install some extra packages to gain access to exFAT volumes. Please follow this answer here.


Lexmark E210 Printer Installation Procedure

On the link, you provided you found a tar.gz file which contains ghostscript rpms, and a ppd file. You dont need the rpms, cause ghostscript is standard package in most distributions, ubuntu too. So first install ghostscript, (if it is not there already, and probably does), on the standard way apt install ghostscript. After that use the downloaded ppd to install the printer.

In Lubuntu You may install it by opening localhost:631 in a web browser. If you have the default flavour, you can use the gnome-control-center „Devices/Printers/Add a printer” button. Just follow the instructions and select the mentioned Lexmark-E210-gdi.ppd when needed.


Can I use X windows to show the GUI of a remote process?

The simplest thing is to run

ssh -X user@host gnome-system-monitor

or something similar. The -X option allow to run graphical applications on the local X server.

To show a full session, with menu, panels, and so, is more difficult. You can try VNC protocol, available by default on Ubuntu through the client vinagre, or FreeNX, or XDMCP.


I fixed it! I lowered the screen resolution and the Dash reappeared. If only I knew this before I reinstalled 3 times.


Nautilus takes so long to open when I have a network folder mounted

When you have a network drive mounted to your computer, it means it has to update the status every time you open nautilus. Because the drive will appear in the left pane where your bookmarks are.

My suggestion will be to unmount the drive when not used, in order to prevent the time it takes to load it every time nautilus is open, OR
you could let a window with Nautilus stay open in the background all the time, so it wont take that long for it to load.

I am not rather sure if those suggestions will work out for you, but i guess so based on what i have experienced myself. However, if i am wrong about this, i am terribly sorry.


What does the head: property do on Page{} in qml?

toolbaritems has been deprecated in Ubuntu.Components 1.1, so its use is strongly discouraged. It is maintained for backward compatibility, but the right way to add items to the header toolbar is now using head.actions.

The main difference between head.actions and toolbaritems is that you don't need anymore to add ToolbarButton items and then set their action property. All you need with head.actions is to specify a list of actions and then they will be automatically shown according to Ubuntu Touch patterns.

An example that shows how to use head property is the following (from official documentation):

import QtQuick 2.0
import Ubuntu.Components 1.1

MainView {
     width: units.gu(48)
     height: units.gu(60)
     Page {
         title: i18n.tr("Example page")
         Label {
             anchors.centerIn: parent
             text: i18n.tr("Hello world!")
        }
        head.actions: [
             Action {
                 iconName: "search"
                 text: i18n.tr("Search")
             },
             Action {
                 iconName: "contacts"
                 text: i18n.tr("Contacts")
             }
        ]
    }
}

There are some other useful settings for PageHead (e.g. custom Item to show instead of the title), so I'd suggest you to take a look at this page.

If you are running Ubuntu 14.04 LTS, these new APIs are not available, due to their dependence on Qt 5.3. You can solve this issue following this link .


Brave browser not starting due to snap mount namespace error

The solution presented here is to use:

sudo usysconf run -f

Additionally in the link another user points out you don't need to use snap because brave is in the repo's now. You can download the brave .deb installation package here.


Upload Files(from the internet) to a dropbox or google drive

Your dropbox/google drive is connected to your PC and not generally to the internet. Unless the site you download it from offers a direct upload to dropdox/google drivee you will need to use your PC as an in between.

There is a google extension that lets you save screenshots directly to google drive but not one for downloads.


It was just a optional recommendation i run:

php bin/symfony_requirements

and everythink is ok .

[OK]
 Your system is ready to run Symfony projects

Optional recommendations to improve your setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

intl ICU version installed on your system is outdated (55.1) and
does not match the ICU data bundled with Symfony (57.1)
To get the latest internationalization data upgrade the ICU
system package and the intl PHP extension.


How to switch between applications in current workspace only in gnome-shell?

As linked in @black_puppydog's comment, this answer by @daniel451 solves the problem:

  Install dconf-editor (already installed on current debian/ubuntu distributions):

sudo apt-get install dconf-editor

  Open dconf-editor (from the Dash or a Terminal)
  Navigate to: org -> gnome -> shell -> app-switcher
  Set "current-workspace-only" to true

Note: I copied the answer here before this was closed as duplicate.


How do I set-up three monitors with two graphics cards (3d acceleration enabled) in Unity?

It's currently quite hard to get even dual monitors working. There are reports of bugs and inability to get a dual monitor working so 3 monitors is going to be a stretch at this point.


How to enable thumbnail view on file dialog boxes?

That's called progess ;-) But there is an workable alternative

(if needed) Install dconf-tools
open dconf-editor
Click to: org -> gnome -> nautilus -> list-view
Click (right side of the window) on default-zoom-level keep mouse button pressed for choosing prefered value: standard, large, larger, largest


Radeon black screen on Ubuntu 16.10 Linux 4.8

I have solved the issue by installing fglrx-pxpress. The description of the package is:

"This is a transitional package for ubuntu drivers-common. You can remove it after upgrading."

However, I still need the package even after upgrading.


How do I check my version of GNOME-Shell?

Just type

gnome-shell --version

into a terminal.


Any good foip (T.38) clients for ubuntu?

I hate answering my own questions, but I thought I would tell everyone what we finally ended up doing, (even though it's not very preferable)

RXFAX

Call Centric --> Asterisk server --> Uses spandsp ReceiveFAX application to save to tmp file --> Hang up

Upon hang up (exten => h,1) the dialplan would execute a shell script I made called mailfax.

Mailfax uses sendEmail to email the fax with the attachment, then deletes the tmp tiff file.

TXFAX

Script to check to see if new files in directory (sshfs share) --> Generates .call file (name of tiff file is number to dial) --> Asterisk uses spandsp SendFAX --> Call Centric

Hopefully this will be helpful to somebody, and maybe we will even see some foip applications in the future :)


How to checkout svn files to another directory other than the current

svn co url://some/url name-of-directory-you-want

From svn help checkout:

$ svn help checkout
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]

  If specified, REV determines in which revision the URL is first
  looked up.

  If PATH is omitted, the basename of the URL will be used as
  the destination. If multiple URLs are given each will be checked
  out into a sub-directory of PATH, with the name of the sub-directory
  being the basename of the URL.

That last argument you see ([PATH]) is the path to the directory where you want it to be checked out.


Android Studo showing :"OpenJDK shows intermittent performance and UI issues."

I don't have an exact solution, but I figure I share my experience since finding this question helped me resolve my issue. I was just having the same issue as you with Linux Mint 17 x64, also using JDK 8u20, and stumbled upon your post, which led me to the blog post you linked in your post. Following those steps resolved my issue without having to make any changes to Android Studio. I just executed the commands, restarted Android Studio and the notification was gone.

My only suggestion I could say is to make sure you're getting the commands correctly and when doing the two commands

sudo update-alternatives --config java

sudo update-alternatives --config javaws

that you ensure you're selecting the correct number selection ID to the newer JDK

/usr/lib/jvm/jdk1.8.0_20/bin/java

My selections were 2 and 3, respectively, for those two commands.

Hope that helps narrow a solution down for you. Thanks for helping me, I hope that helps you narrow down a solution. Good luck.


Server gets killed due to increasing number of ssh-agent processes

To kill the ssh-agent process, you can just simply use the ssh-agent -k command.

However, you might get the following error message:

  SSH_AGENT_PID not set, cannot kill agent

It's related to the subshell that invoked by your command within   parentheses. The parent shell can't see the variables that were generated in the subshell, making the SSH_AGENT_PID empty.

You can change the one-liner into:

ps -u $(whoami) | grep ssh-agent &> /dev/null
if [ $? -ne 0 ];then
    eval $(ssh-agent)
    ssh-add
fi
trap 'ssh-agent -k; exit' 0

The last line will kill the agent for you when you log out the system.

But please note that this only works with one session, let's say, if you login with second session, then the second session won't be blessed by the ssh-agent that you authorized in the first session. You will need to workaround it by exporting the SSH_AGENT_PID and SSH_AUTH_SOCK in the second session to make it work. You can do it by printing these two variable into a temporary file, and load it in .bashrc, a quick example:

ps -u $(whoami) | grep ssh-agent &> /dev/null
if [ $? -ne 0 ];then
    eval $(ssh-agent)
    ssh-add
    echo "export SSH_AGENT_PID=$SSH_AGENT_PID" > ~/.agent-profile
    echo "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> ~/.agent-profile
else
    source ~/.agent-profile
fi
trap 'ssh-agent -k; exit' 0

Have fun.

Edit:
Don't forget to kill all your ssh-agents before you try this in your .bashrc, otherwise it will fail to call ssh-agent as there is already a running one.


Any created file on mounted NFS has permissions Nobody

You specified your share with NFSv3-style syntax.
When mounting on the client, try mounting with -o nfsvers=3

mount -t nfs 1.2.3.4:/home /home -o nfsvers=3

By default, NFSv4 is used which is kind of compatible with v3, so the mount succeeds, but the mapping of user ids and permissions is messed up. So either use NFSv4 server-side or force the client to use v3 using that option.


Reinstalling Ubuntu and removing Windows on the same SSD

Before doing anything drastic, always make a back-up and then go on to the easiest and safe way to do this is using os-uninstaller.

Boot to Ubuntu from a LiveCD/DVD/USB
Open a terminal by pressing  ctrl+alt+T and copy paste:

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

Open os-uninstaller from the dash and you'll get this window:

choose the OS you want to remove. You'll be asked to confirm, click OK and wait tell it finishes removing.


No Wireless interface on Ubuntu 14.04 with Broadcom driver on Asus R556L

My computer is an Asus A450JF. I have same problem as you. My solution:

sudo rmmod -f acer-wmi


How can I install Nvclock on Ubuntu 16.04

TTVUKT explains how he got Nvidia overclocking working and getting good performance levels on 16.04 without installing nvclock.

  Needed to install Nvidia driver 375.20.

  Install Ubuntu 16.04 with enabling software update options for Ubuntu
  Development team and third parties.

  On reboot, after installation open up Ubuntu Software - update the
  OS and reboot.

  So, first install the default Nvidia driver through Software &
  Updates, and then Additional Drivers. The Ubuntu Nvidia 367.57 driver
  includes extra tweaks from the Ubuntu development team for maximum GPU performance.

  Reboot.

  Now switch back to the non-Nvidia drivers in Software & Updates.

  Reboot.

  Now, you can install the latest Nvidia drivers and get the maximum GPU performance.

  Press Ctrl+Alt+F3 to get into
  a text-only virtual console.

  Log in.

  Switch off x-server with:

sudo service lightdm stop.

  Got to Downloads folder with:

cd ~/Downloads
ls

  This will display driver name and run with:

sudo sh ./AND NVIDIA NAME LISTED

  There will be two error messages, but ignore them and say yes at the
  prompts.

  Then, switch the x-server back on with:

sudo service lightdm start

  Reboot PC.

  Then run this in terminal:

sudo update-grub
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

  Finally, you can enter overclocking settings and fan controls by
  creating startup .sh file by copying and pasting this into empty
  document amending for desired fans speed and clock settings.

  To finish, you will create a startup .sh file for each GPU so the
  overclock settings and fan speed are loaded when you login to Ubuntu 16.04.

  Create some empty documents on Ubuntu Desktop and call them whatever
  you like. Make sure the filename has .sh at the end.

  Paste in:

#!/bin/bash

nvidia-settings -a '[gpu:0]/GPUGraphicsMemoryOffset[3]=100'
nvidia-settings -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=100'
nvidia-settings -a '[gpu:0]/GPUFanControlState=1'
nvidia-settings -a '[fan:0]/GPUTargetFanSpeed=30'

  Amend the clocks (GPU and Memory) and fan speeds to whatever are you
  comfortable with. Make separate documents for each GPU by changing the
  numbers for each card.

  Save and open properties and make each file "executable".

  Then open the Dash and find Startup Applications, and add these files
  to the programs you run when you start up the Ubuntu 16.04 desktop.

  Reboot and fans and overclocks will load up with no hassle.


Hibernate missing from power menu and when I press laptop power button

Unfortunately, hibernation has been disabled by default in Ubuntu 12.04, because it wasn't working correctly on many systems.

If you are not sure if hibernation works with your hardware, you can test it by sending the hibernate command from your Terminal

sudo pm-hibernate

Here's how to enable it anyway: (warning: only for advanced users — might not work)

In the Terminal, type:

  sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Enter your password when requested.

Search for the section

  [Disable hibernate by default]
  Identity=unix-user:*
  Action=org.freedesktop.upower.hibernate
  ResultActive=no

and replace it with

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

After the next restart, the option "Hibernate" will be back in the 'power menu' at the top right of your screen. If your hardware supports hibernation, it'll work now.

Note: In case you want to disable hibernation again, just revert the changes made above.


16.04 touchscreen laptop, closed lid and when open a whole bunch of apps have started and done random things

Please choose suspend in "when lid closed" option is power settings.
settings -> power.

If your issue still persist then you can execute below commands:

xinput list

the above command will list all your device names.

To disable your touch screen panel. Run

xinput set-prop <touch-device-name> "Device Enabled" 0

To enable your touch screen panel. Run

xinput set-prop <touch-device-name> "Device Enabled" 1

You can setup these commands in your /etc/acpi/handler.sh
So that your acpi events could handle this.


Package [zfsnap] installed incorrectly - what's what?

»» $ zfsnap
zfsnap: command not found ««

The package zfsnap provides /usr/sbin/zfSnap : Please note the upper case S in zfSnap.

Spelling, 1) Read the file list with dpkg -L zfsnap
2) Read online http://packages.ubuntu.com/xenial/all/zfsnap/filelist


can i install ubuntu from an external hard drive/ can i run fedora and ubuntu together on one system?

You need create a live usb from the Ubuntu.iso

You can install and boot as many OS as you wish limited by hard drive space, so, yes you can dual boot Ubuntu and Fedora.

I suggest you run both Ubuntu and Fedora live for a while and see which you prefer. Depending on your hardware, some people find the KDE versions faster then the gnome versions (see this weeks review on Distrowatch).


Ubuntu 16.04 - Install PCI Hotplug Capability

Probably, that feature is already compiled in the kernel and you don't need to load any module. Check that these options are enabled in your kernel:

# grep "CONFIG_HOTPLUG_PCI_ACPI=" /boot/config-`uname -r`
CONFIG_HOTPLUG_PCI=y

# grep "CONFIG_HOTPLUG_PCI=" /boot/config-`uname -r`
CONFIG_HOTPLUG_PCI_ACPI=y

# grep "CONFIG_MEMORY_HOTPLUG=" /boot/config-`uname -r`
CONFIG_MEMORY_HOTPLUG=y

Then, for kernel >=4.8, you need to set this parameter on boot:

memhp_default_state=online

(as stated in the Proxmox Hotplug instructions)

Edit: if memhp_default_state= is not set on boot, kernel will default to CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE kernel config.


Yes, Ubuntu is optimized for multicore CPUs and has been for many years.

Some background:

"Version 2.0 (of the Linux kernel) was released 9 June 1996. There were 41 releases in the series. The major feature of 2.0 was SMP support (that is, symmetric multi processing in a single system) and support for more types of processors."


Ubuntu 12.04 Crashes on Boot After Installing NVIDIA Drivers

Try the following:

Boot your PC
If GRUB doesn't show up on it's own:

While booting, press Ctrl+Alt+Del

Enter Recovery mode of your Ubuntu via GRUB (advanced options)
Select root shell with networking (netroot) and type the following command: mount -o remount,rw / This will give you rw-access to your FS.
Remove installed graphics driver
Type and execute apt-get install nvidia-current
reboot


Cannot Connect Two Monitors

You need to try to install the drivers for your graphics card

Try This and just pick your graphics card and your version of Linux and language
http://www.nvidia.com/Download/index.aspx?lang=en-us

If you dot know what Nvidia graphics you have just pick option 2
this works for all Nvidia Graphics card and that how you install the drivers.

Once have you done that the Operating System should have detected the monitors and Graphics Card.

If this doesn't work just go into your Graphics Card Properties in your Nvidia Software that you have install and try to fix or just reset the defaults or just simple troubleshoot the problem.

if this Doesn't work just tried to re-install Ubuntu

if also dont work just try to read the help for graphics of Nvidia
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

if you cannot find your problem or fix it, the problem might be that your hardware doesn't support the version of the Ubuntu that you have try to upgrade it or just wait for Ubuntu 12.04 long term support that is coming out in march 2012 and by then they will have fixed the problem


Try removing pstore files with

sudo rm /sys/fs/pstore/dmesg-efi-*.enc.z


How to remove element from gsettings array in script?

Using bash for this task should be possible but I prefer doing complex array manipulations with a Python3 script:

#!/usr/bin/env python3

import argparse
import subprocess
import sys

parser = argparse.ArgumentParser()
parser.add_argument("schema", help="gsettings shema", metavar="SCHEMA")
parser.add_argument("key", help="gsettings key", metavar="KEY")
parser.add_argument("values",
                    help="gsettings value(s) to remove from the KEY array",
                    metavar="VALUE", nargs='*')
args = parser.parse_args()

array = eval(subprocess.check_output(["gsettings", "get", args.schema, args.key]))
for v in args.values:
    try:
        value = eval(v)
    except:
        value = v
    try:
        array.remove(value)
    except ValueError:
        print("Warning: {} not in {} {}".format(value, args.schema, args.key), file=sys.stderr)
subprocess.call(["gsettings", "set", args.schema, args.key, str(array)])

This script allow multiple values to be removed at the same time from the schema/key  passed to the script.


cannot connect my bluetooth speakers. why?

This fixed the problem.
Had also to reset one audio speaker.

Open terminal and type

sudo gedit /etc/bluetooth/main.conf

Change the value of RememberPowered from true to false

Save and reboot.


320gb hdd all ubuntu, want to partition and add win 7

If I were you, I would do the following:

Boot into Ubuntu or GParted Live CD/DVD
(Ubuntu only) Install GParted (sudo apt-get update && sudo apt-get install gparted)
Graphically shrink the Ubuntu to partition the amount you want to use with Windows
Reboot, boot into Windows 7 disc/card/what have you
Partition the now completely unused space via installer and install Windows 7

WikiHow GParted Live CD/DVD Guide

You may need to recover your bootloader in order to be able to choose between Ubuntu and Windows at boot. Official Guide to Repairing Bootloader

Always backup any files you want to keep before partitioning, stuff happens.


syslog-ng viewer that can display many log files of different IDS

ELSA has parsers for many IDS, firewall etc. log messages and can create nice visualizations: https://github.com/mcholste/elsa

Actually there is also an Ubuntu based security distro which has all of these integrated: https://security-onion-solutions.github.io/security-onion/


Ubuntu is running in low graphics mode, mouse and keyboard do not work

In my case it was simply a question of not enough disk space. I used Ctrl Alt F1 to get into a terminal, then removed the files and directory that were causing the problem, and rebooted.


I have Win10 running in a VBox (5.2.32) on my kubuntu (18.04) host. It can no longer communicate with my USB scanner.o USB devices attached

After doing all of the things in my question, my comment, and also adding my primary user ID to vboxusers, I finally rebooted my host. After that reboot my guest was able to access my scanner.


How to get an update of deleted file on host machine only with rsync

Use --delete together with --dry-run in your command.
From man rsync:
--delete

    This option can be dangerous if used incorrectly! It is a very good idea to
    first try a run using the --dry-run option (-n) to see what files are going
    to be deleted.


How to get rid of odd error line when ALT+TAB'ing away from an emacs launched in terminal

The bug is
known,
and there is a work-around in this comment on
it.
I effected the change there suggested; once I closed and reopened emacs, the problem was solved.


make install: cannot run strip: No such file or directory

make tries to call the program strip which isn't installed.

Install the package binutils


Prevent aria2c from uploading torrent files?

This very subject was addressed to one of the aria2c developers earlier this year:

Is it possible to turn off BitTorrent upload completely?

And unfortunately the answer was pretty clear in the negative:

  There is no way to completely turn off BitTorrent uploading at the
  moment.

Your only real option is to experiment with the following two options which will go close to what you are after:

--seed-ratio=Ratio

Specify share ratio. Seed completed torrents until share ratio reaches RATIO.
You are strongly encouraged to specify equals or more than 1.0 here. Specify
0.0 if you intend to do seeding regardless of share ratio. If --seed-time
option is specified along with this option, seeding ends when at least one
of the conditions is satisfied. Default: 1.0

An example for your purposes could be:

aria2c --seed-ratio=0.1 file.torrent

–max-upload-limit=Speed

Specifies the max of upload rate. An example for your purposes would be:

aria2c --max-upload-limit=5K file.torrent


Just add yourself as recipient (being Alice), and both will be able to decrypt the message:

echo "message" | gpg --encrypt -a -r Bob -r Alice

There are GnuPG-Plugins for all relevant mail clients which make handling of encrypted mail easier and at the same time less error-prone.


This method shows how to record whatever audio is playing on your computer, similar to recording "stereo mix" in windows. This makes recording audio played by any application, including flash videos, possible.

I'm using the Sound Recorder application that comes in standard Ubuntu installations. To set this up using other programs (like Audacity) just substitute it in these instructions.

Install pavucontrol (PulseAudio Volume Control) using apt-get or the Ubuntu Software Center.
Open PulseAudio Volume Control. It should be in the applications menu under Sound and Video.
Open Sound Recorder and start recording. Playing any sound at this point would be helpful, as your level indicator should react once you have finished.
Go to the "Recording" tab in the PulseAudio Volume Control window.
Make sure that "Applications" is selected in the drop down menu on the "Recording" tab.
Choose "Monitor of Internal Audio Analog Atereo" from the "Record Stream from" menu in the Sound Recorder entry of the application list.

This appears to be persistent so that you will only have to do this once, but you will have to repeat these steps to record in another application.

All credit for this answer goes to this post.


How to run a realtime kernel in VirtualBox?

First consider the linux-lowlatency kernel. It's easily available (just install that package and boot to it) and recieves updates. It's built around the generic kernel with configuration tuned to lower latency. This is a soft-real-time kernel.

Given things are going through abstration layers for virtualisation, it's unlikely that the whole stack will be realtime anyway so personally I'd say soft-rt is fine.

If you want to pursue a true realtime system, you're going to have to build your own kernel. All the PPAs appear to have dried up. It's not hard - it's just slightly painful.

Patches aren't available for every version of the kernel but you'll find them here:

https://www.kernel.org/pub/linux/kernel/projects/rt/

I'd also suggest building from the vanilla source instead of hacking a patch onto the end of the standard Ubuntu kernel. If I were doing this, I'd be following this guide:

How can I install a realtime kernel?


I spent some time investigating this and the answer was remarkably simple.

Remove the gutenprint driver sudo apt-get remove gimp-gutenprint gutenprint-doc libgutenprint-doc sudo apt-get autoremove
Remove the printer queue that used the gutenprint driver. I used the printers GUI. Start by typing printers into the dash


How to use the ansible.runner module on Ubuntu 14.04.5?

There is an issue at Ansible's GitHub repository about this. The runner module does not exist anymore because of backward-incompatible changes in Ansible's Python API. You would have to change your script accordingly as detailed in Ansible's documentation about its Python API.

P.S.: I was considering providing actual code for the changes you need to make but that would seem out of scope for Ask Ubuntu and would fit in better at Stack Overflow. If you have questions about Ansible's Python API, you should ask them at Stack Overflow.


If you still want to downgrade your version  of LO then remove the current PPA of LO from the software sources . after doing that open your terminal and paste these following line one by one in your terminal

sudo add-apt-repository ppa:libreoffice/libreoffice-3-5
sudo apt-get update
sudo apt-get install libreoffice

That will installs libreoffice-3-5 in your Ubuntu.

One more point , this PPA is available for only 12.04 LTS.

If you want to install  libreoffice-3-6 , because its applicable upto Ubuntu 12.10. you can do it as

sudo add-apt-repository ppa:libreoffice/libreoffice-3-6
sudo apt-get update
sudo apt-get install libreoffice

hope that helps.


Mac OS VirtualBox Appliance for Ubuntu 12.04 for purchase?

I don't think so, given that it's illegal to run Mac OS X on non-Apple-labeled hardware, per section 2 of the License Agreement:

  "This License allows you to install and use one copy of the Apple
  Software on a single Apple-labeled computer at a time."

You probably already have a Mac, and thus OS X, which you can run with raw disk access.

Moreover, VirtualBox OS X support is experimental and has serious issues.


How to force Quickly to NOT include a dependency? (Specifically: apport)

I'm not sure what the 'variety' CrashDB is exactly, but without the third party check there, and your application not being in Ubuntu proper, it means apport won't be usable to report bugs for your application.

Whether this is an issue or not, is something you need to decide. If it's not an issue, then the apport bits should be safe to remove.

You can also simply edit the generated debian/control file, and move the python-apport dependency from the Depends: field and into the Suggests: field.


How to install Boost/lexical_cast.hpp in Ubuntu 12.04

According to the Ubuntu Packages Search the packages libboost1.46-dev and libboost1.48-dev contain that file.

Click on the package links at the search results to get more information about that packages.


Namenode should be formatted very first time and in case it is corrupted. Never ever format namenode when it is running.

In my case it's working fine. So please follow this

root@ashu-700-430qe:/usr/local/hadoop/bin# ./hadoop namenode -format
root@ashu-700-430qe:/usr/local/hadoop/bin# ./hadoop namenode -format
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

16/02/15 10:17:33 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = ashu-700-430qe/127.0.0.1
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 2.6.3
STARTUP_MSG:   classpath = /usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/servlet-api-2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/jasper-runtime-5.5.23.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-el-1.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-lang-2.6.jar:/usr/local/hadoop/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-io-2.4.jar:/usr/local/hadoop/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-httpclient-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/httpcore-4.2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/avro-1.7.4.jar:/usr/local/hadoop/share/hadoop/common/lib/curator-framework-2.6.0.jar:/usr/local/hadoop/share/hadoop/common/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/common/lib/curator-recipes-2.6.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-logging-1.1.3.jar:/usr/local/hadoop/share/hadoop/common/lib/jets3t-0.9.0.jar:/usr/local/hadoop/share/hadoop/common/lib/xmlenc-0.52.jar:/usr/local/hadoop/share/hadoop/common/lib/jsp-api-2.1.jar:/usr/local/hadoop/share/hadoop/common/lib/activation-1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/curator-client-2.6.0.jar:/usr/local/hadoop/share/hadoop/common/lib/gson-2.2.4.jar:/usr/local/hadoop/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jasper-compiler-5.5.23.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-digester-1.8.jar:/usr/local/hadoop/share/hadoop/common/lib/guava-11.0.2.jar:/usr/local/hadoop/share/hadoop/common/lib/zookeeper-3.4.6.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/common/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/common/lib/paranamer-2.3.jar:/usr/local/hadoop/share/hadoop/common/lib/jetty-6.1.26.jar:/usr/local/hadoop/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/usr/local/hadoop/share/hadoop/common/lib/jsr305-1.3.9.jar:/usr/local/hadoop/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/usr/local/hadoop/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/usr/local/hadoop/share/hadoop/common/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-configuration-1.6.jar:/usr/local/hadoop/share/hadoop/common/lib/htrace-core-3.0.4.jar:/usr/local/hadoop/share/hadoop/common/lib/slf4j-api-1.7.5.jar:/usr/local/hadoop/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/junit-4.11.jar:/usr/local/hadoop/share/hadoop/common/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-codec-1.4.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-cli-1.2.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-math3-3.1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/hamcrest-core-1.3.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/usr/local/hadoop/share/hadoop/common/lib/jsch-0.1.42.jar:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar:/usr/local/hadoop/share/hadoop/common/lib/jettison-1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-net-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/hadoop-auth-2.6.3.jar:/usr/local/hadoop/share/hadoop/common/lib/hadoop-annotations-2.6.3.jar:/usr/local/hadoop/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/usr/local/hadoop/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-collections-3.2.2.jar:/usr/local/hadoop/share/hadoop/common/lib/stax-api-1.0-2.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-json-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/httpclient-4.2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/mockito-all-1.8.5.jar:/usr/local/hadoop/share/hadoop/common/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/common/hadoop-nfs-2.6.3.jar:/usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.3-tests.jar:/usr/local/hadoop/share/hadoop/common/hadoop-common-2.6.3.jar:/usr/local/hadoop/share/hadoop/hdfs:/usr/local/hadoop/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jasper-runtime-5.5.23.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-el-1.0.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-io-2.4.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jsp-api-2.1.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/guava-11.0.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jsr305-1.3.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/htrace-core-3.0.4.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.6.3-tests.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-nfs-2.6.3.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/lib/servlet-api-2.5.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-lang-2.6.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-io-2.4.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-httpclient-3.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/javax.inject-1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/usr/local/hadoop/share/hadoop/yarn/lib/activation-1.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/aopalliance-1.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/guice-3.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/yarn/lib/guava-11.0.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/yarn/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jetty-6.1.26.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jsr305-1.3.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jline-0.9.94.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-codec-1.4.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-cli-1.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jettison-1.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/usr/local/hadoop/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-client-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-json-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-tests-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-common-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-common-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-registry-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-client-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-api-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.6.3.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/javax.inject-1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/guice-3.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/junit-4.11.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/hadoop-annotations-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.3-tests.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.6.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.6.3.jar:/contrib/capacity-scheduler/*.jar:/contrib/capacity-scheduler/*.jar
STARTUP_MSG:   build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r cc865b490b9a6260e9611a5b8633cab885b3d247; compiled by 'jenkins' on 2015-12-18T01:19Z
STARTUP_MSG:   java = 1.8.0_72
************************************************************/
16/02/15 10:17:33 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
16/02/15 10:17:33 INFO namenode.NameNode: createNameNode [-format]
Formatting using clusterid: CID-44f10aa0-6658-4a35-9cfa-843a8277554c
16/02/15 10:17:34 INFO namenode.FSNamesystem: No KeyProvider found.
16/02/15 10:17:34 INFO namenode.FSNamesystem: fsLock is fair:true
16/02/15 10:17:34 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
16/02/15 10:17:34 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
16/02/15 10:17:34 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
16/02/15 10:17:34 INFO blockmanagement.BlockManager: The block deletion will start around 2016 Feb 15 10:17:34
16/02/15 10:17:34 INFO util.GSet: Computing capacity for map BlocksMap
16/02/15 10:17:34 INFO util.GSet: VM type       = 64-bit
16/02/15 10:17:34 INFO util.GSet: 2.0% max memory 889 MB = 17.8 MB
16/02/15 10:17:34 INFO util.GSet: capacity      = 2^21 = 2097152 entries
16/02/15 10:17:34 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false
16/02/15 10:17:34 INFO blockmanagement.BlockManager: defaultReplication         = 1
16/02/15 10:17:34 INFO blockmanagement.BlockManager: maxReplication             = 512
16/02/15 10:17:34 INFO blockmanagement.BlockManager: minReplication             = 1
16/02/15 10:17:34 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2
16/02/15 10:17:34 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000
16/02/15 10:17:34 INFO blockmanagement.BlockManager: encryptDataTransfer        = false
16/02/15 10:17:34 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000
16/02/15 10:17:34 INFO namenode.FSNamesystem: fsOwner             = root (auth:SIMPLE)
16/02/15 10:17:34 INFO namenode.FSNamesystem: supergroup          = supergroup
16/02/15 10:17:34 INFO namenode.FSNamesystem: isPermissionEnabled = true
16/02/15 10:17:34 INFO namenode.FSNamesystem: HA Enabled: false
16/02/15 10:17:34 INFO namenode.FSNamesystem: Append Enabled: true
16/02/15 10:17:34 INFO util.GSet: Computing capacity for map INodeMap
16/02/15 10:17:34 INFO util.GSet: VM type       = 64-bit
16/02/15 10:17:34 INFO util.GSet: 1.0% max memory 889 MB = 8.9 MB
16/02/15 10:17:34 INFO util.GSet: capacity      = 2^20 = 1048576 entries
16/02/15 10:17:34 INFO namenode.NameNode: Caching file names occuring more than 10 times
16/02/15 10:17:34 INFO util.GSet: Computing capacity for map cachedBlocks
16/02/15 10:17:34 INFO util.GSet: VM type       = 64-bit
16/02/15 10:17:34 INFO util.GSet: 0.25% max memory 889 MB = 2.2 MB
16/02/15 10:17:34 INFO util.GSet: capacity      = 2^18 = 262144 entries
16/02/15 10:17:34 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
16/02/15 10:17:34 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
16/02/15 10:17:34 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000
16/02/15 10:17:34 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
16/02/15 10:17:34 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
16/02/15 10:17:34 INFO util.GSet: Computing capacity for map NameNodeRetryCache
16/02/15 10:17:34 INFO util.GSet: VM type       = 64-bit
16/02/15 10:17:34 INFO util.GSet: 0.029999999329447746% max memory 889 MB = 273.1 KB
16/02/15 10:17:34 INFO util.GSet: capacity      = 2^15 = 32768 entries
16/02/15 10:17:34 INFO namenode.NNConf: ACLs enabled? false
16/02/15 10:17:34 INFO namenode.NNConf: XAttrs enabled? true
16/02/15 10:17:34 INFO namenode.NNConf: Maximum size of an xattr: 16384
**Re-format filesystem in Storage Directory /usr/local/hadoop_store/hdfs/namenode ? (Y or N)**

It will prompt you for Y/N

  Re-format filesystem in Storage Directory
  /usr/local/hadoop_store/hdfs/namenode ? (Y or N)

Providing Y it will go ahead and format the namenode

16/02/15 10:21:06 INFO namenode.FSImage: Allocated new BlockPoolId: BP-799383395-127.0.0.1-1455556866943
16/02/15 10:21:07 INFO common.Storage: Storage directory /usr/local/hadoop_store/hdfs/namenode has been successfully formatted.
16/02/15 10:21:07 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
16/02/15 10:21:07 INFO util.ExitUtil: Exiting with status 0
16/02/15 10:21:07 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at ashu-700-430qe/127.0.0.1
************************************************************/

So in your case it has definitely formatted the namenode as you can cross check the Hadoop framework standard logs matches that of mine.


"Fixed" it by switching to Google Chrome, which uses Pepper Flash. No problems since then.


Recovering admin password on used netbook

It's true that reinstalling Linux will be your best option. As you are a new guest user, you likely don't have much useful information or any files worth keeping, and even if you do, you can back those up to any cloud storage (Sync, Dropbox, et al), a USB flash drive, or SD card, amount other things. You could even plug your cell phone into the USB slot and copy stuff over to there.

That being said, to create a bootable Ubuntu medium is pretty easy. There is a wealth of information here and abroad for how to do that; A pretty easy way is to use unetbootin but you would need the admin password to install any new apps. You could potentially dd an ISO file to a USB stick, but that can really do harm if any type errors are made.

Not to make assumptions about your level of competence regarding those things, they are viable options. This link
https://linuxconfig.org/recover-reset-forgotten-linux-root-password
as well as many threads on this site offer methods for resetting the root password, which is actually very easy. If you have another computer, though, I would suggest burning a CD or making a bootable USB stick and installing that way. You can even burn "Live" images, so that you can try different varieties before committing to one.

If you insist on resetting the root password, you need to drop into a shell at boot and do some things there... I won't expand just yet although I do know the question is how can you reset the root password.

Good luck, and follow up with us with the direction you intend to go.

Cheers!


mount remotely mybook live network drive

Port 443 is usually for HTTPS; I believe that the correct port for CIFS is 445. You would have to forward that port. I did a port scan of my MyBook Live and it showed as having an open port on 445 for the file system.

port scan:

PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
80/tcp    open  http
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
443/tcp   open  https
445/tcp   open  microsoft-ds
548/tcp   open  afp
2049/tcp  open  nfs
49153/tcp open  unknown

I would also recommend setting up a VPN on the fritzbox router

You would then have to mount it manually or add a line in etc/fstab that makes use of the external IP address.

Command Line:

$ mkdir /mnt/cifs
$ mount -t cifs //server-name/share-name /mnt/cifs -o username=shareuser,password=sharepassword,domain=yourdomain
$ mount -t cifs //123.456.78.90/sharename /mnt/cifs -o

username=shareuser,password=sharepassword,domain=yourdomain

There should be no need to specify the port in your mount command since the protocol should specify that.


Ubuntu 14.04 - How to Fix the Ubuntu Appearance

You have to uninstall all of the plasma packages to get rid of the KDE themes.

sudo apt-get purge oxygen-cursor-theme oxygen-cursor-theme-extra oxygen-icon-theme oxygen-icon-theme-complete gtk2-engines-oxygen gtk3-engines-oxygen kde-style-oxyge

be sure to review the list of uninstalled applications before accepting the changes so you don't uninstall something you want or need to keep


Go to the webpage for the bug report and below the bug-title look for

  This bug affects %n person(s). Does this bug affect you?

Click on it and select "Yes, it affects me" (you need to be logged in at launchpad).

Additionally, look for

  You are not directly subscribed to this bug's notifications.

at the sidebar at the right. Click there and you'll get the option to subscribe to the bug report (you'll get updates by email).


How do I make the Dash open up fullscreen in 2D?

11.04
I've found a workaround to do that.
Open the file /usr/share/unity-2d/places/dash.qml.
Find this code:
        if (currentPage != undefined) {
        currentPage.visible = false
    }
    currentPage = page
    currentPage.visible = true
    dashView.dashMode = DashDeclarativeView.FullScreenMode //AND ADD THIS LINE
}

NOTE: I've tested this on the daily build of Unity-2d from PPA, I'm not sure it works on the Natty version.
EDIT: The code on the Natty version it's similar, and is between the line 42 and 50.


Running a webcam with built-in mic in Skype - Ubuntu 12.04?

I also have a C510 and it's a composite device of two: a camera and an audio device with just a mono input. This means that it's just a sound card like any other, and you need to control it using the audio mixer settings. For example, use pavucontrol:

Make sure it's unmuted and selected as input for the application (also unmute there):

And finally, check the audio mode, to be on Analogue Input:

It's working for me in Skype 4.1 in Ubuntu 12.04.

Device: ID 046d:081d Logitech, Inc. HD Webcam C510


SystemD Can't get script to start Samba4 Active Directory-Domain Controller (AD-DC) at boot Ubuntu 16.04

After failing to find the answer to my question, and Bounty, I posted my question at:

https://answers.launchpad.net/ubuntu/+question/295108

actionparsnip gave the best answer, and it was to edit /etc/rc.local and add this command just before the exit 0 line

sudo nano /etc/rc.local

edited the file to include:

exec /usr/local/samba/sbin/samba -D
exit 0

This is the best answer, and it works.