Is there some easy way to add another HDD to a volume?

Based on your PV's and VG's
You have to extend first your Volume Group as your new physical was created
vgextend ubuntu-vg /dev/sdb1
scan it again so you can check
pvscan
then
lvdisplay
for example lvdisplay outputs something like this

--- Logical volume ---
LV Name                /dev/ubuntu-vg/rootfs
LV Size               20.62  GiB

From here on it will show your logical volumes that you want to increase the size, you can increase it using this.
lvextend /dev/ubuntu-vg/rootfs /dev/sdb1
but you are not then you have to resize it to take effect
resize2fs /dev/ubuntu-vg/rootfs
Hope this helps.


Ubuntu (dual boot) can see mobile hotspot but not main network

You need to install firmware-b43-installer. Please follow this step by step: Downloads can be done from other computer with Internet too.

Remove this kernel module (if installed) sudo apt-get purge bcmwl-kernel-source

Download these 2 files:
http://mirrors.kernel.org/ubuntu/pool/main/b/b43-fwcutter/b43-fwcutter_019-4_amd64.deb
http://www.lwfinger.com/b43-firmware/broadcom-wl-6.30.163.46.tar.bz2

Copy them to your Ubuntu Home folder

Go to your Home folder and Run in terminal sudo dpkg -i b43-fwcutter_019-4_amd64.deb

Extract with tar xfvj broadcom-wl-6.30.163.46.tar.bz2

Then sudo b43-fwcutter -w /lib/firmware broadcom-wl-6.30.163.46.wl_apsta.o

Run sudo modprobe b43

Reboot

Your WiFi shall be available by now.

Install broadcom-sta-dkms, broadcom-sta-common & broadcom-sta-source from the Ubuntu repo (via terminal or via synaptic package manager)

Reboot

Below is the image of my present .bash_history, you may see the commands I used there. Ignore the line Ubuntu_Broadcom_wifi_Fix, as that's the name of the folder I saved the downloaded files.

Done
Hope this helps.


Logitech MX Master Thumb Button with Ubuntu

I managed to fix it, as you guys mentioned the thumb button on this model triggers the Control + Right Alt (aka AltGr) + Tab combination in linux.
So go to Settings > Keyboard > select Navigation \ Switch system controls
Change its shortcut to some other key binding and replace the default. (I changed to Shift + Control + Tab)
Once you replaced this binding (Control + Right-Alt (aka AltGr) + Tab) with a new one, this combination (and the thumb button) is available to be set on another shortcut option.
Move to System \ Show the overview and set a new shortcut, do this clicking on the MX's thumb button.
No dependencies on any configuration edit is needed, it works like a charm on Ubuntu 18.04 LTS.


How to copy a picture from a web page to a usb drive

Right click the image on web
Select Save image as …
Select your USB drive
Click Save button


no sound for mp3 and no sound for movies

Try with VLC media player.
To install VLC Player use the following command:

  sudo apt-get install vlc


why is there no "Adobe Flash Player" in these searches

Ubuntu Software is designed to find and install applications with graphical user interfaces at first hand.

The recommended ways to get Flash on Ubuntu are summarized on this page:

https://help.ubuntu.com/stable/ubuntu-help/net-install-flash.html

So, for Firefox, installing the flashplugin-installer package may be sufficient.

sudo apt install flashplugin-installer


The fsck tool ntfsfix is for scanning NTFS.

Mind that this is not a 100% functional replacement for the tools Windows offers. It will only fix common errors:

  ntfsfix is a utility that fixes some common NTFS problems.  ntfsfix is NOT a Linux version of chkdsk.  It only repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows. You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.

You should repair Windows from Windows. Windows also offers a repair option on their installation medium.

===

  SYNOPSIS

ntfsfix [options] device

  OPTIONS

  Below is a summary of all the options that ntfsfix accepts. Nearly all options have two equivalent names. The short name is preceded by - and the long name is preceded by --. Any single letter options, that don't take an argument, can be combined into a single command, e.g. -fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.

-b, --clear-bad-sectors
   Clear the list of bad sectors. This is useful after cloning
   an old disk with bad sectors to a new disk.
-d, --clear-dirty
   Clear the volume dirty flag if the volume can be fixed and mounted.
   If the option is not present or the volume cannot be fixed,
   the dirty volume flag is set to request a volume checking at next mount.
-h, --help
    Show a list of options with a brief description of each one.
-n, --no-action
    Do not write anything, just show what would have been done.
-V, --version
    Show the version number, copyright and license


Software Updater keeps filling up /boot - can it use a different directory?

Your system doesn't write to the /boot partition except when it has to. Most notably, this means kernels and similar.

When a Ubuntu system updates, it keeps around a few old versions of the kernel in an attempt to keep your system operable. That is, if you update your kernel and your system fails to boot, you can just boot from the old ones.

After a while, these old redundant kernels become unnecessary. You can generally clear these out with the following command:

sudo apt autoremove

You can also use the excellent Ubuntu Tweak tool, whose Janitor section includes a kernel cleanup utility.


From: How to Update a Ubuntu LTS release to the next LTS Version (release upgrade)

apt-get update
apt-get install update-manager-core

Edit /etc/update-manager/release-upgrades and ensure the last line reads:

Prompt=lts

Then run:

do-release-upgrade -d

Note: -d option only until 18.04.1 comes out!


Snap to full screen not working (dual monitors)

Ok I found the issue, if you have different sized monitors and are trying to go full screen on a smaller monitor and the height of the current window is larger than the monitor you are on it will instead maximize on your larger screen. Didn't do this before but 12.04 but it is what it is.


How to write systemd service to ensure start after dns service?

Please add a dependency in your service file:

After=nss-lookup.target

This should ensure that host/name lookup is operable.

Further details are in the documentation:
https://www.freedesktop.org/software/systemd/man/systemd.special.html

  nss-lookup.target

  A target that should be used as synchronization
  point for all host/network name service lookups. Note that this is
  independent of UNIX user/group name lookups for which
  nss-user-lookup.target should be used. All services for which the
  availability of full host/network name resolution is essential should
  be ordered after this target, but not pull it in. systemd
  automatically adds dependencies of type After= for this target unit to
  all SysV init script service units with an LSB header referring to the
  "$named" facility.

To fully wait for network, the documentation of systemd https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ directs you to add to your service:

After=network-online.target
Wants=network-online.target

and to confirm that the relevant "wait" service is enabled:

$ systemctl is-enabled NetworkManager-wait-online.service systemd-networkd-wait-online.service
disabled
enabled


Ubuntu blank screen after software update 18.04

Your problem is probably the new Nvidia driver. If you can't live without it I'd recommend upgrading to Ubuntu 19.10 which I believed corrected bionic's issues concerning this.


Try reconfiguring the gdm by typing the following command in the terminal:

sudo dpkg-reconfigure gdm

You will see a number of display managers.

Try selecting one of them and see if it helps. Don't worry, you can change this anytime using the same command.


HPE Gen10 Proliant 17.10 to 18.04 - GUI does not start - AMD Opteron X3216

I have solved this issue.  Even though the proliant gen10 has a VGA port, it also has two HPE D-Ports.

I bought a D-Port to HDMI adapter and plugged it in - success.  X was working fine.

So for some odd reason, 17.10 picks up the VGA and defaults to it, but 16.04 and 18.04 ignore the VGA completely.  Hope this helps someone else.


Showing Error "usb 5-2 device descriptor read/64 error -71 >a start job is running for ubuntu live cd installer"

It's normal that the DVD is ejected at the end of the installation just before reboot. The installer even tells you so and asks you to confirm it. It also tells you to remove the DVD from the drive so that your computer can boot the new Ubuntu installation from the internal drive. If you leave the DVD in the drive tray the tray will be closed again during boot and the computer may boot from the DVD instead of the internal drive.

For more info see How do I install Ubuntu?


DnD of files on icons in gnome-shells dock to open app dropped on is not a supported feature.

Even the Dash to Dock extension creator notes this, referenced - https://github.com/micheleg/dash-to-dock/issues/578

Third party docks should work as expected, 2 examples are  Docky & Plank. Note that plank is xorg only, no wayland support yet. (or ever?

Another path is to install unity & use it instead. Though for best performance of unity one should also switch back to lightdm & remove gdm3, gnome-shell, ect. Note that unity is also xorg only.


RecordMyDesktop versus XVIdCap and an importing problem

Same here.

Pitivi and Totem uses gstream and work fine with RecordMyDesktop OGV files.

OpenShot, mplayer, mplayer2, smplayer, mencoder and ffmpeg show the video "pixelated"

mplayer says:

==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [fftheora] vfm: ffmpeg (FFmpeg Theora)
==========================================================================

I fixed it using VLC to convert RecordMyDesktop OGV files to WEBM, then opening in OpenShot.


How to configure a VPN on Linux GUI given just a configuration file?

You are able to import a VPN configuration using GNOME's network management GUI.  Just click "Import from file..." under Settings -> Network -> Add VPN


There is no difference in the functions provided, just that useradd is a compiled binary, and adduser is a perl script. adduser is more user-friendly, so it could fit better for a beginner.
Use adduser create a fully functional user on the system. The command will run tasks like creating home directory, creating a group for it, promting for password, etc. Beside that useradd will just create the user (ofcourse you can use switches, but the default is just the user creation).
The two commands are not identical (adduser runs useradd and many other things).


How do I disable the ALT hotkey in Unity?

Open System settings > Keyboard settings > Shortcuts tab.
Select Key to show the HUD and press BACKSPACE.

In this way you can disable the ALT hotkey in unity.


How do I find out if my cpu is affected by the intel memory leak?

The flaw appears to affect all 64-bit Intel CPUs. From the article:

  the flaw is in the Intel x86-64 hardware

You can use

lscpu | awk 'NR==1 || NR==10 {print $NF;}'

or with grep as mentioned in the comments by Patrick Mezkev:

lscpu | grep -E "(Architecture|Vendor ID)"

to determine if your CPU is 64-bit (x86_64) and manufactured by Intel (GenuineIntel). If both of these are returned from that command, your CPU is affected.

Additionally, as mentioned by JonasCz, if you're running a patched kernel, you can check /proc/cpuinfo for cpu_insecure:

grep cpu_insecure /proc/cpuinfo

This is (as of the time of writing this post) quite worthless due to the following:

No patched kernel has arrived to Ubuntu.
All x86 CPUs are being marked as "vulnerable".


By default the root mysql user is restricted to disallow certain logins so for example in my environment on the command line issuing:

mysql -u root -p mysql

won't let me connect to the database, I would have to sudo:

sudo mysql -u root -p mysql

If you want to grant more privs to the phpmyadmin user then mysql logon as root and issue the relevant grant commands so for example the following gives the user all privs to all databases in all tables, including being able to grant privs to other users:

GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Of course you might not want that level of grant, you might want to only grant to certain databases/tables.


How may I restrict accesing apache using server IP address?

You should use virtualhosts for that. Something along lines

# Ensure that Apache listens on port 80
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/ip_address_root
ServerName 123.123.123.123

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org

# Other directives here

</VirtualHost>

(Example copied from here)

Alternatively, mod_rewrite helps with this. Something like

RewriteCond %{REMOTE_HOST}  ^123\.123\.123\.123$
RewriteRule .* http://www.example.org/you_are_using_ip_address [R=301]


Installing the server edition from USB is not different than installing the standard desktop from USB. Use Unetbootin to prepare your USB stick from the .iso and then just boot your system from USB and install as always.


Look here

http://code.google.com/p/sopcast-player/wiki/Installation


Why do a lot of programs crash in segmentation fault?

Either you recently upgraded a library that the programs share to a new, buggy version, or you have developed a hardware problem, such as overheating.


Cropping video in HandBrake more than 952 pixels from right

the problem solved through updating to the latest version


You can get the php5 package from the URL:http://packages.ubuntu.com/search?keywords=php5 You can download the package you need and install it.


LD_LIBRARY_PATH works but ldconfig does not

It was a bug/defect of ldconfig addressed here:https://bugs.freedesktop.org/show_bug.cgi?id=26663

In short, ldconfig completely ignores library priority when OS ABI tag is given. OS ABI tag of Default system qt library was 3.17.0, while 5.15.0 library was 2.6.28. This puts Default system qt library always before 5.15.0 library in ldconfig hierarchy. You can confirm this behavior with ldconfig -p.

The workaround I choose is to patch OS ABI tag of 5.15.0 library. In this case, I used the commands:

echo -en "\x04\x00\x00\x00\x10\x00\x00\x00\x01\x00\x00\x00\x47\x4e\x55\x00\x00\x00\x00\x00\x03\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00" > patch.txt
objcopy --update-section .note.ABI-tag=patch.txt /home/myaccount/Qt/5.15.0/gcc_64/libQt5Core.so.5.15.0 patched.so

And then replace libQt5Core.so.5.15.0 with patched.so. I don't think this is a recommendable solution, but it does work. Make sure to create backup.


How to install vanilla version of Firefox on Ubuntu?

Most likely crashes are caused by plugins, you can try to disable unnecessary plugins.

Try to use flash block plugins to disable Flashes (click to play any flash, in my case, I don't even install Flash for Firefox, I use Chrome's built-in flash module anyway...).

Vanilla version won't really help.

I would recommend backing up your firefox profile

~/.mozilla/firefox/xxxxxxxx.default

Use profile manager to create a new profile and start with that one (you can still switch back and forth)

firefox -profilemanager

http://kb.mozillazine.org/Profile_Manager

If you want to have vanilla Firefox binaries (I don't think it'll help), download from:
http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/linux-x86_64/en-US/

untar firefox-16.0.2.tar.bz2 to your preferred folder, for example:

cd /opt && tar axvf firefox-16.0.2.tar.bz2

Use ./firefox to start the vanilla Firefox.


You can't change it if your device/laptop already have default bluetooth program. Only bluetooth that come with usb adapter can be changed.


You need to swipe the sms you want to forward to the left. There are 2 options: copy and info. You choose copy (the first one) and then you can paste the content into the new sms to forward.
I could not find a direct forward yet, but copy/ paste works as good.


Try this:

sh -c /home/andrei/andreiscripts/startup.sh >> /home/andrei/Desktop/out.txt 2>&1

That should work.  I've run into this same problem and running my script with sh fixed it.

Also, you may want to delay it for 5 or 10 seconds so everything else can load.  To do this, go to ~/.config/autostart, find your new entry, open it with a text editor, and add the line:

X-GNOME-Autostart-Delay=5

The number is in seconds.  The same thing can be achieved with the "sleep" cmd, but this is cleaner (it spawns no new processes).

I've also run into problems trying to run shell scrips at startup running multiple commands that spawn multiple instances of programs like yours.  The only solution I could come up with was to add an "&" to the end of each command.  If "sh -c" doesn't work try that.

There are other possibilities too, if you still haven't got it working maybe we can try something else :)


"klauncher said: Unknown protocol 'file'" even though I've installed kio

Looks like another little thing I needed was pkill kdeinit. That cause klauncher to restart.


Can I add a proprietary wireless driver to a liveUSB stick?

The broadcom STA driver that supports your device is already on the installation media.  Tell it to install 3rd party software during install and it will activate it before partitioner comes up.  connect to your wifi, continue install.


Sublime Text: see how many resources each plugin is using

you can open System monitor and see there's a process called plugin_host, which is a sublime process containing all the plugin resources of the editor, if you want to see specifically the resource of each plugin, you may want to install this sublime plugin.

https://github.com/skuroda/PackageResourceViewer


Ubuntu 14.04 & AMD 14.6 Driver issue R7 260X

I have the same system and card. Until today I had the same problem. Go to System Settings > Software & Updates > Additional Drivers . Select AMD proprietary drivers with updates. As of today, it installs fglrx with OpenGL 4.4 and everything you could want. I've got (24x improvement) in FPS using this driver.

I thought Additional Drivers only describes you what driver you are using. Not true, It does an automatic install of very recent proprietary driver.


Sorry for answering my own question, but I've just today (16th Feb 2011) updated my Vostro V13 with Maverick "Proposed" updates, using Synaptic.  There was a new kernel which now supports Edge scrolling.  Nope, there's no two-finger support (greyed out), but it's a big step in the right direction.

I believe that "Proposed" updates make their way in good time to the mainstream backports or main archives, so sitting tight might be an option here too.


How to install adblock software via terminal

Why don't you try hblock? It's a sweet ad blocker with install via terminal and auto daily update.
Run the following command:
curl -o '/tmp/hblock.#1' 'https://raw.githubusercontent.com/hectorm/hblock/v3.2.0/resources/systemd/hblock.{service,timer}' \
  && echo '08b736382cb9dfd39df1207a3e90b068f5325a41dc8254d83fde5d4540ba8b5b  /tmp/hblock.service' | shasum -c \
  && echo '87a7ba5067d4c565aca96659b0dce230471a6ba35fbce1d3e9d02b264da4dc38  /tmp/hblock.timer' | shasum -c \
  && sudo mv /tmp/hblock.{service,timer} /etc/systemd/system/ \
  && sudo chown 0:0 /etc/systemd/system/hblock.{service,timer} \
  && sudo chmod 644 /etc/systemd/system/hblock.{service,timer} \
  && sudo systemctl daemon-reload \
  && sudo systemctl enable hblock.timer \
  && sudo systemctl start hblock.timer

More information here: https://github.com/hectorm/hblock/tree/master/resources/systemd


Greeter for lightDM not accepting changes

Try this is a terminal:

sudo apt-get purge abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish espeak exo-utils flex fonts-droid fonts-lyx gigolo gmusicbrowser gnome-system-tools gnome-time-admin gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-sound-gtk2 leafpad libabiword-3.0 libbison-dev libdigest-crc-perl libexo-1-0 libexo-common libexo-helpers libfl-dev libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgsf-1-114 libgsf-1-common libgstreamer-perl libgtk2-notify-perl libgtk2-trayicon-perl libgtkmathview0c2a libgtkspell0 libido-0.1-0 libindicate-gtk3 libintl-perl libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 libnet-dbus-perl liboobs-1-5 libotr5 libots0 librarian0 libsexy2 libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-perl libtumbler-1-0 libunique-1.0-0 libvte-common libvte9 libwv-1.2-4 libxfce4ui-1-0 libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util6 libxfcegui4-4 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl lightdm-gtk-greeter link-grammar-dictionaries-en m4 orage parole pastebinit pavucontrol pidgin pidgin-data pidgin-libnotify pidgin-microblog pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj rarian-compat ristretto screensaver-default-images scrollkeeper shimmer-themes system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman tumbler tumbler-common xbrlapi xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && sudo apt-get install --reinstall ubuntu-desktop

and then reboot.

It should remove all the Xubuntu related stuff and then reinstall anything that might be missing that Unity needs.


Problem installing Bumblebee on Ubuntu 12.04

Firstly, I would suggest checking your Software Sources. Delete anything related to Bumblebee and follow these steps:

Installing Bumblebee under Ubuntu 12.04

Open up a terminal and enter these commands:

sudo add-apt-repository ppa:bumblebee/stable && sudo apt-get update
sudo apt-get install bumblebee

See also Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


Failed to lock /var/cache/apt/archives/lock

Your error exactly matches this bug report.  The bug was marked critical in 2016 (at the 16.04 to 16.10 upgrade), but has apparently never been resolved.

Report your finding to revive the bug report from its dormancy.  It appears to affect multiple people (as witnessed as well by several questions here on AskUbuntu).

The upside is that the bug report suggests some workarounds.

My suspicion is that the bug could be caused by an out-of-distro installation of Python packages.  Did you install any Python version from source or from PPA's? If so, undo that, then retry the upgrade.


Cannot ping or be pinged by any other devices on network

Symptom: The only device you can access or ping are your device and the router

My Solution (Which worked for me when I had wasted 3 days trying to fix this issue): Just reset your modem. Its having the problem.

Reset your modem to factory defaults.
Reload the configuration of the modem
Test if the problem is solved

I had an option to downgrade the software version using a software reload option in my Optilink modem. I used that as well. But I am not sure if it would be necessary.


How can I set up on-the-fly/transparent compression?

Fusecompress would have been a ideal, since that lives in virtual filesystem and thus has no requirement on changing the actual filesystem run. However, sadly, the project is dead upstream and I would recommend to stay away from it for this reason.

BtrFS supports only ZLIB and LZO compression at the time of writing.

ZFS-on-Linux (non-FUSE) offers more options, including LZ4 compression. It's actively maintained and the userbase for ZFS in general is quite large in other than-Linux Unices (Sun, BSD, etc.).

Migrating to a "3rd generation" filesystem could be a good idea for other reasons too, but that's totally up to how flexible you are in implementing just this.


Enable SynPS/2 Synaptics TouchPad in 14.04

This may be a simple driver issue, similar to the one I solved for myself on a HP laptop with a 14.04.3/WinXP dual boot, a few months ago.
Look for the SynPS/2 Synaptics Touch Pad driver.
What put me on that trail was @JustinSolms' answer here.
I downloaded it as a tar ball from Dell's download center as:

downloads.dell.com/FOLDER02334135M/1/E5x50_A00.fish.tar.gz

The Dell site comes with MD5 and SHA256 and more to check the integrity of yr downloaded material, so no worry there. It also comes with installation instuctions. Basically double click on the tar ball and follow instructions.

After reboot, check that your touchpad works. If you want you can check its setting capabilities. You should get something close to:

$ xinput --list-props "SynPS/2 Synaptics Touch Pad" | grep Capabilities
Synaptics Capabilities (304): 1, 1, 1, 1, 1, 1, 1

1st number =1: device has physical left button
2nd number =1: device has physical middle button
3rd number =1: device has physical right button
4th number =1: device supports 2 finger detection
5th number =1: device supports 3 finger detection
6th number =1: vertical resolution of device can be configured
7th number =1: horizontal resolution of device can be configured

This wiki discusses capabilities in more details.


Can not connect to a VPS in SSH with a key?

You are using ssh-agent (or some derivative like gnome-keyring), which is storing your ssh keys. They might got removed, modified or somehow inaccessible during the time.

check what keys are in ssh-agent using ssh-add -l. Do they exists?
are you using gnome-keyring? How does your $SSH_AUTH_SOCK look like? See echo $SSH_AUTH_SOCK. Then open "Passwords and keys" application and check the keys there (and remove the problematic ones).
restart should take care of this problem too.


Why is wakeup (alarm clock) discontinued in 18.04lts?

You could download and install the deb file but you will first need to download and install the xenial shell-fm dependency.

However, you won't get security updates if you manually download and install the deb files.

In order to get security updates, you can use the apt-pinning method to pin these two packages from the xenial universe repository. I've tested this installation method and it starts up and runs okay but I have not tested the alarm function.

Installing packages from other versions of Ubuntu always comes with the possibility of causing problems. Also, Xenial is only supported until 2021 so you will need to delete the xenial repository when this time comes by removing the /etc/apt/sources.list.d/xenial.list file or you will get 404 errors after Xenial is EOL.

First, run the following command to set your default release to 18.04 "bionic" to prevent unwanted upgrades from xenial:

echo 'APT::Default-Release "bionic";' | sudo tee -a /etc/apt/apt.conf.d/01ubuntu

Next, run the following command to add the xenial universe repository:

echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://security.ubuntu.com/ubuntu xenial-security universe' | sudo tee /etc/apt/sources.list.d/xenial.list

Then, run the following command to "pin" the two desired packages:

echo 'Package: wakeup
Pin: release n=xenial
Pin-Priority: 995

Package: shell-fm
Pin: release n=xenial
Pin-Priority: 995' | sudo tee -a /etc/apt/preferences

Finally, run the following commands to install wakeup:

sudo apt update
sudo apt install wakeup

explanation:

Apt-pinning can be kind of confusing because the Ubuntu documentation doesn't go into much detail and the Debian documentation examples don't apply to Ubuntu and the default "Pin-Priority" values are different for Debian.

The "Pin-Priority" value decides which version of a package to install regardless of the package version. A package with a higher value will have priority over a package with a lower value.

The "Pin-Priority" for packages in your default distribution "bionic" is 990. Packages from any repository that are not "bionic" are set to 500.

Here, we set the two extra packages to 995 to have priority even though they are not in the default distribution.

If you run the command: apt-cache policy wakeup you will see that the package is listed as 995 but the repositories are listed as 500.

Also, if you want to revert these changes and uninstall these packages run the following commands:

sudo apt purge wakeup shell-fm
sudo rm /etc/apt/sources.list.d/xenial.list
sudo apt update


How can I run two Skype accounts on the same Ubuntu?

Run this command on terminal:

skype --secondary


Static IP Address on Ubuntu 12.04 Virtual Machine

To achieve static IP, edit /etc/network/interfaces and add:

auto eth0
iface eth0 inet static
address 192.168.100.100
netmask 255.255.255.0
gateway 192.168.1.1 # or whatever your gateway is

Then enable the device with sudo ifup eth0 and you should be done.


Location of SVG source file for folder icon (GNOME)

The svg version of this icon (plus friends) can be found in the adwaita-icon-theme source code with the following path:

adwaita-icon-theme-3.24.0/src/fullcolor/folders.svg

Of course the root directory will change according to which version of the icon theme you use. A direct link to the online source is here... and a screenshot below:

Like you I could not find this particular icon installed in an svg version (odd?) so this may be your best option...


I found the solution to my own problem, It definitely was the CUDA (NIVIDIA) driver. All I did was uninstall the drivers via terminal, and voila!! My booting is back to normal.


Accessing the terminal from GNOME without a mouse

I use the Ctrl+Alt+T shortcut to start the Terminal very quickly.


Try using apt-cache show packagename to see more about packages. You can read your answer in there:

$ apt-cache show gearman-server
[...]
Depends: perl, libgearman-client-perl, libdanga-socket-perl
[...]
Description-en: [...]
 This package contains both the Gearman server as well as the corresponding
 Perl bindings.

$ apt-cache show gearman-job-server
[...]
Depends: libboost-program-options1.46.1 [...]
[...]
Description-en: [...]
 This package contains the C reimplementation of the job server daemon
Homepage: http://launchpad.net/gearmand

So, basically, gearman-job-server (C/C++) is an alternative to gearman-server (Perl?), providing not all the exact same features.


The grub update command will scan all the connected drives and add all the recognized partitions to the menu.

Run this command:

$ sudo update-grub

As far as customizing grub, you can edit the grub configuration file.  Most of the options documented in the file by comments.

$ nano /etc/default/grub

After making changes you have to update the boot files with the command above.


Not able to change brightness on a Compaq Presario CQ61

Not sure this will work as mine's a Samsung but I use this command:

sudo setpci -s 00:02.0 F4.B=XX

where XX is a hex value, but don't press 00 because you wouldn't see anything then. I cannot get it to work on restart though.


It's not too hard actually.

Open your Updates Manager;
Click 'Settings' in bottom left;
In the new window, select the 'Updates' tab;
Under 'Notify me of a new Ubuntu version' select 'For any new version';
Make sure you don't change any other setting;
Run the updater and you will be prompted to upgrade to the newest version, 12.10 that is.

Things to remember:

Make sure to back up your important documents, just in case;
If you have any custom PPAs added, make sure to re-enable them after the upgrade;
Although 12.10 is a stable release, it's the 12.04 that is a LTS; So it's the 12.04 that is recommended for usage on production machines.

Source: OMG! Ubuntu! "[How To] Upgrade Ubuntu 12.04 to 12.10"


I used apt-get to download irssi and it got stored in /usr/bin and I can't find it/open it. How to solve this?

If you want to run it from a terminal, just write irssi. /usr/bin is included in the PATH variable that tell's the system where to find executables.

If it is a gui program, you should be able to search for it in the desktop, or find it in the program menu.


Why does gnome-session crash my TightVNC session and how can I fix it?

To answer how to diagnose your problem specifically, the first step would be to enable apport crash reporting on the system and then attempt to reproduce the crash. Once you've caused TightVNC to crash again, if it was the type of crash that apport should catch, a crash report should have appeared in /var/crash. You should be able to point ubuntu-bug at the crash report file to have it submit a bug report to launchpad.

That said, a while back I went through several of the vnc servers, looking to use one in the way you describe, as a separate session rather than to duplicate a running desktop. As I recall, tightvncserver crashed on me a lot, and based on the launchpad bugs for the package, it seem that a few other people see the same thing.

I ended up using vnc4server , which has worked pretty well for me over multiple releases. That said, in maverick, I'm getting bitten by bug 655886 when using a gnome session, so it's not perfect.


Which torrent client has command line arguments to start/stop downloads?

rtorrent, deluge and transmission all have native Linux torrent clients that can be operated via the command line.


I finally got it fixed after going through hundreds of lines of code and deleting and installing numerous software. the problem was solved when i slided the balance slider in sound settings to the right or left. it was initially in the middle which was causing the issue in the first place. after sliding the balance slider the issue was immediately fixed. no echo in sound and no bad sound quality. i suggest that people try this option.


External sound card stops functioning after suspend

Try the following command

pulseaudio -k && sudo alsa force-reload

Try it a few times if it doesn't work


How to effectively extend the root partition without resizing it?

/usr and /var typically use up the most space in the root directory. if you have a lot of third party software, /opt may be quite large also.

It is possible to make partitions that mount to these directories in the same manner that /home mounts to the root directory.

That said, it is easier to boot from a live CD/USB and move the /home partition as in mentioned in the comments.

Of course, back up important data before doing either operation.


How can I chroot sftp-only SSH users into their homes?

All this pain is thanks to several security issues as described here. Basically the chroot directory has to be owned by root and can't be any group-write access. Lovely. So you essentially need to turn your chroot into a holding cell and within that you can have your editable content.

sudo chown root /home/bob
sudo chmod go-w /home/bob
sudo mkdir /home/bob/writable
sudo chown bob:sftponly /home/bob/writable
sudo chmod ug+rwX /home/bob/writable

And bam, you can log in and write in /writable.


First of all, we see this:

  /etc/modprobe.d/iwlwifi.conf line 1: ignoring bad line starting with
  'option'

The file now reads:

  option iwlwifi 11n_disable=1

The file was erroneously overwritten. It should read:

# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
options iwlwifi 11n_disable=1

Please restore the deleted content and then be certain the term is options with an s.

Next, as you found, when you boot into an earlier kernel version, the ethernet and, I assume, wireless, works as expected. Let's try to reinstall the -32 version.

sudo apt install --reinstall linux-image-4.13.0-32-generic
sudo apt install --reinstall linux-headers-4.13.0-32-generic

Reboot. Is everything working correctly now?


How to install ubuntu software packages permanently

All packages are installed permanently. The reason you are receiving repeated updates of Firefox and Chrome is because Mozilla and Google frequently push minor updates to those applications. If bandwidth consumption is an issue, then I would suggest just updating less frequently to avoid downloading every minor update and waiting for some more major changes.


Right click on the panel.
Click 'Add to Panel...'.
Select 'Main Menu' (not 'Menu Bar', this is the default menu applet).
Click 'Add'.

You can remove the old menu by right clicking it and clicking 'Remove from Panel'.


Can't print, CUPS package corrupted and hangs on re-install

I had a problem like this with a headless box that had once been a print server and only listened for TCP (vice Unix socket) connections.

The 10.10 init script for CUPS waits for the Unix socket to appear, and if your cups.conf doesn't specify one, you get the kind of hangs that you are describing.

Verify that cups.conf has a line like

Listen /var/run/cups/cups.sock

because /etc/init/cups.conf contains the (dumb IMHO) line:

# wait until daemon is ready
     while [ ! -e /var/run/cups/cups.sock ]; do sleep
 0.5; done


How to Shut down Ubuntu by using keyboard?

Well you could open terminal by pressing CTRL+ALT+T

then simply type :

-for shutdown:

sudo shutdown

or

sudo poweroff

-for restart:

sudo reboot

As far as  I am aware, there isn't a system shortcut for shutdown, but you could create one. Read Are there any Keyboard Shortcuts to Shutdown?


How can I resize partition to utilize the extra space in Gparted

Move swap partition sda2 to the end of your disk.
Resize sda1 to maximum.

Don't be afraid to experiment to the point where you press "Apply All Operations" - this is where actual disk writes will start.


The Irkutsk time being wrong is a bug, which is supposed to be "fixed" and "released".  See Launchpad bug for the whole history of this Time Zone update.

However, for some or other reason, the TZDATA does not get released to my version of Ubuntu (14.04) so I installed the Debian fix (released!) myself:

Steps to follow:

Go to Debian tzdata FTP repository
Download:

tzdata_2014h-0squeeze1_all.deb
tzdata-java_2014h-0squeeze1_all.deb

sudo dpkg --install tzdata_2014h-0squeeze1_all.deb tzdata-java_2014h-0squeeze1_all.deb
Log out and log back in

The above files are tested on Ubuntu 14.04 only. (My own machine)  I have no clue what this will do for future TZ updates to your machine, so I would be careful if doing this in an international environment with multiple servers!  (On the other hand: it's just data, not an application)


Try first to define a VIRTUAL1 display:

xrandr --newmode "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync

And use it to set the profile of VGA-1:

xrandr --addmode VGA-1 1440x900_60.00


Using "put" command in sftp gives "no such file or directory"

My guess is that you're not in the correct local path, to find out where is your current directory at your local machine, use: lpwd.

If you where in a wrong path then use lcd to move into correct path for example:

lcd ~/Desktop

Know to make sure all your files are in place use: lls to get a list of your local files. or even something like this:

lls blankfile.txt

To make sure it's there. then you can use put to start uploading it to remote machine:

put blankfile.txt

If you've been encountered to any permission error, use pwd command to find out where you are at your remote machine.

If you are in a path like /var and you did sftp with a normal user, it's obvious that you can't upload your files there, in this case you will get an error like:

remote open("/root/blankfile.txt"): Permission denied

Use cd command to change into a directory that you are permitted to write and then use put command.

The other permission issue that could happen is your local file permission, which will produce:

Couldn't open local file "blankfile.txt" for reading: Permission denied

Check your local file permission with lls -l blankfile.txt, make sure your current user at your local machine has a right to read that file.


I'm not a tree-hugger but using something as CPU intensive as fullscreen Flash when you're not even using your computer seems like using energy for the sake of it.

Be cool and use blank screen (with DPMS settings) instead. It'll cost you less.


Possibly you need to run sudo dpkg-reconfigure resolvconf to recreate the symlink at /etc/resolv.conf to /run/resolvconf/resolv.conf.

Make sure that /etc/resolvconf/resolv.conf.d/base is empty of domain and search options.

You can omit the dns-domain options from /etc/network/interfaces. They are superfluous.


How to install ubuntu 12.04 on a system already having Windows 7?

To install Ubuntu 12.04 on windows system

Make bootable pen-drive or bootable compaq disc(CD) with Ubuntu 12.04

Follow the steps:

Attached Pen drive or CD on your commuter
De-fragment the disc space of D drive in windows
Restart your computer
When Black screen comes it will automatically take your bootable CD or pendrive if not press f11 to go to boot menu
After that Ubuntu started
Set it's time zone
Identify your partition of D drive on Ubuntu
Your Ubuntu installed successfully on your system.

In this way your Ubuntu will be installed. So each time when you start your computer it will be always ask for windows or Ubuntu.

Select Ubuntu from list.


How to create more space for Ubuntu Partition

Easy:

Make a Full System Back-up
Move /dev/sda3 all the way to the end of the disk
Commit
Let it work all night while you sleep
next day, extend the /dev/sda4 as it now has free space next to it.

Done!  ;-)


DHCP servers generally keep a cache of MAC Address to IP address mappings, so that they can reassign the same IP address to a returning client.

What is happening is that you're releasing the IP address lease, then asking the DHCP server for an IP address. The server knows that it gave you 192.168.X.XXX before (you have the same MAC address), so it reissues the address.

This sounds like an XY problem - what are you really trying to accomplish?


Cause and fix for pop up dialog when using Gnome Music in Unity

Gnome Music works in the new Ubuntu session of 17.10, so the obvious answer for now is to abandon Unity and jump to the new desktop.


I would like to merge an unallocated partition with a data partition

There is always some risk of losing data when you change partitions. That is why it’s always recommended to have backups available. However the change you describe (expand a partition into unused space) doesn’t sound unusual so it should be routine to do it with the usual tools. I’d be inclined to use Windows tools for NTFS partitions but do take backups first.


How to run multiple commands in multiple terminals using single shell script command

You should use option -e or -x to gnome-terminal. According to man gnome-terminal:
   -e, --command=STRING
             Execute the argument to this option inside the terminal.

   -x, --execute
             Execute  the  remainder of the command line inside the termi‐
             nal.


I can't be 100% positive, but it looks like you have a BIOS/CSM/legacy-mode install of Windows on an MBR disk, then installed Ubuntu in BIOS/CSM/legacy mode, and this worked fine. When you re-installed Ubuntu, though, it appears that you booted the installer in EFI/UEFI mode, which caused it to create, or prompted you to create, an EFI System Partition (ESP; your /dev/sda5). If the system then booted into the EFI-mode GRUB, it would be unable to redirect to the BIOS-mode Windows. Note that some of this is speculative, but this is consistent with your system's current state -- namely, traces of both BIOS-mode and EFI-mode GRUB, no EFI-mode Windows boot loader, and the partition table in MBR form.

In any event, there are several ways to recover. None is guaranteed to work, and all carry some risk. Therefore, I strongly recommend that you back up your personal data and be prepared to completely re-install and restore everything. I also recommend that you read my Web page on the Compatibility Support Module (CSM). That page is written for people in a different situation than yours, but the background information on what the CSM is and why it can create problems will help you understand your current predicament. In any event, your options include:

Revert to 100% BIOS-mode Booting

If you delete or bypass the EFI-mode GRUB on /dev/sda5 and re-install a BIOS-mode GRUB, your problem should go away. The broad outline of how to do this is as follows:

Delete /dev/sda5, or at least erase GRUB from it. This step isn't really required, but it will remove one possible boot path that you don't want for this solution.
Boot the Ubuntu installer in BIOS mode into its "try before installing" option.
Run Boot Repair.

The tricky part to this task is step #2. You must be able to control your boot mode for this process to work. My page on the CSM, referenced earlier, provides information on this. In most cases, you can control the boot mode of an emergency disk by selecting the correct entry from the computer's built-in boot manager menu. External media often have two entries, one of which includes the string "UEFI" and the other of which does not. Picking the "UEFI" entry boots in EFI mode and picking the other entry boots in BIOS mode. At least, that's the way it should work -- sometimes computers take these commands as suggestions, and sometimes boot media may lack one or the other boot loader, which throws a monkey wrench into the works.

Install rEFInd

My rEFInd boot manager, unlike GRUB, can usually redirect from an EFI-mode boot to a BIOS-mode boot. Thus, rEFInd may be able to get your existing Windows installation to boot in BIOS mode, while keeping Ubuntu booting in EFI mode. To do this, you would:

Install rEFInd. You can do this most easily from Ubuntu with the PPA or Debian package. Alternatively, you could use the USB flash drive version if you want to try this without making permanent changes to your computer.
Edit refind.conf (likely in /boot/efi/EFI/refind after you install rEFInd but before you reboot; or in EFI/refind on the USB flash drive if you test using that version): Uncomment the scanfor line and ensure that hdbios is among the options.

With any luck, when you reboot rEFInd will appear and give you various boot options, including at least one (probably two) for Ubuntu and a gray diamond-shaped icon that will, with any luck, boot Windows.

Convert Windows to EFI-mode Booting

The Microsoft MBR2GPT tool is supposed to be able to convert Windows booting in BIOS mode on an MBR disk to boot in EFI mode, converting the disk to GPT. If successful, you'd then have both Windows and Ubuntu installed in EFI mode. That said, there are a number of caveats to this approach:

I've never used this tool, so I can't say how well it would work from personal experience.
Further to the above, Microsoft's tool was probably designed to convert a Windows-only system. I'd guess that the odds of it objecting to your dual-boot configuration -- or worse, of doing it serious damage -- are significant. OTOH, my concerns may be overblown; I've seen no actual discussion of this issue from anybody who's actually tried the tool on a multi-boot computer.
Even if the conversion is successful, the computer will probably end up booting straight to Windows. This may be correctable using EasyUEFI, or in a worst-case scenario, Boot Repair. (You'd need to ensure that Boot Repair runs in EFI mode, though, not in BIOS mode as when reverting to BIOS-mode booting.)

Overall, I'd say this is a "bleeding-edge" sort of solution, and you should try it only if you're very willing to fall back on the next option....

Re-install Everything

You can wipe the disk clean and re-install both Windows and Ubuntu. If you do so, I recommend you re-install both OSes in EFI mode. That's the native mode for most computers these days (those sold prior to late 2011 are mostly BIOS-based, those sold in late 2011 or later are usually EFI-based). As described on my CSM page, adding BIOS-mode boot support to an EFI-based computer complicates the boot path and increases the risk of problems.

Of course, you'll need to back up and restore your personal files if you take this approach. If they're mostly isolated to one partition (it looks like /dev/sda3 may fit this bill, but that's unclear), then you could preserve that partition while deleting everything else -- but there's always a risk that something will go wrong and wipe it out, so you should not count on this as a backup. Also, as your partition table is currently in MBR form and EFI-mode booting of Windows more-or-less requires the disk use GPT, you'll need to convert from MBR to GPT, and most tools delete all partitions when doing such a conversion. My GPT fdisk (gdisk, cgdisk, and sgdisk) tool, which is a standard part of Ubuntu, can do a conversion while preserving existing partitions, so if you want to re-install in EFI mode but preserve one or more partitions, you can use gdisk for that part of the task. See this page for details.

Incidentally, the occasional need to do a complete OS re-install is one reason I like having a separate /home partition in Ubuntu. OTOH, if most of your personal files reside on NTFS so they can be shared across OSes, it may not be worth reconfiguring Ubuntu in this way.

Summary

Overall, reverting to 100% BIOS-mode booting is likely the easiest choice in the short run; converting to 100% EFI-mode booting (via MBR2GPT or by a complete re-install) is likely the best choice in the long run; and using rEFInd to switch boot modes on the fly is a sort of compromise.


how to interpret these errors from syslog

Your first hard drive (sda) is in the process of aggressively failing.

Power it off immediately, get a new boot drive, install a new OS on the new boot drive. Once that is working, plug in the failing drive, mount it "read only" and you might be able to extract data from it.

Of course, like most people you have complete and current back-ups, right? ;)

added in response to comment

"Infant failures" are so common in hardware engineering that there is a term for them. In general, a device will fail very early or run for a goodly while. If you' are having repeated failures you are either:

buying cheap disks (I've personally had more trouble with Brand Foo drives than I can count (but my personal experience can't be used to make a general statement about a manufacturer which is why I didn't write "Maxtor")).
having some really bad luck. The same could happen with lightbulbs: there is going to be some guy who has the next two lightbulbs he buys fail in a week. Them's statistics for you and you might just be "that guy" with the drives.
you actually have a bad drive controller that is burning up the drive electronics. For example, there can be an out-of-spec resistor on a drive control line and it will fry every drive you attach to it.

I think those three possibilities are far, far more likely than you uncovering a fatal flaw in EXT4; it's just been beaten on too hard. Then again, demonic possession could be at play, consult the clergy of your choice and good luck.


You want to do cross-compiling, which is a way to compile code for platforms other than the one your on, especially when the processor is completely different. Basically you need to install all the headers for your target (i.e. windows) and then tell the compiler it's cross-compiling so it won't do some of the system checks and instead will point to non-standard directories.

Depending on the language you might find it useful to do a search or question specifically, or if you're doing basic c you can use MinGW tools and the same sort of linux based compile tools that use gcc:

sudo apt-get install gcc-mingw32

There is a good guide for qt/win32 cross compiling using MinGW tools.


Your user is using GNOME 3 with GNOME Shell! You can purge GNOME 3 and reinstall it but it's the same as you have said.


System Sounds in Ubunto Studio 20.04 lts

Click on the main menu (or CTRL+ESC) and go to Ubuntu Studio Controls.


Permissions denied and cannot change permissions for files on external drive

You need to check and edit your /etc/samba/smb.conf

I think you'll find useful reading THIS

pay particular attention to the explanations about:
security = user
map to guest = Bad User

and

force user = [username]
force group = [group]


DNS_PROBE_FINISHED_NXDOMAIN on new website

Looks like a DNS issue, check what IP address is being returned by ping yourwebsite.com or nslookup yourwebsite.com
Try flushing your DNS cache by running sudo systemd-resolve --flush-caches and/or sudo systemctl restart systemd-resolved.service
How long ago was the website registered etc? If it's only very recently then the address/IP may not be propagated across all internet nameservers, it may take 24-48 hours.
If you want to set custom DNS nameservers (e.g. the Google ones in your example) rather than whatever your ISP/router is giving you then add them into the Ubuntu Network Settings GUI.


Windows boot manager does not recognizes dual OS

I'm not sure if there is a better way to do this, but the issue is that grub was overwritten with the Windows boot loader. Here are some links that should help you with repairing Grub:
https://www.howopensource.com/2012/05/reinstall-recover-grub-from-ubuntu-12-04-live-cd-usb/
http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
https://help.ubuntu.com/community/Grub2/Installing

When I duel booted my computer, I found that the simplest way is to reinstall Ubuntu which will return the Grub menu.


making file executable works only from GUI, not Terminal

your command chmod -x
deprives the execution permission. if you want to make it executable try:

chmod +x filename


I have a problem with HDMI sound on both Ubuntu 14 and Windows 7, is this hardware?

Yes. It sounds like a hardware problem as it persists regardless of operating system. This does not necessarily mean the your 670 GTX is faulty. Try a different (known working) cable. If you get the same result with a known good cable, you know where the problem is.


Need to set hibernating setting by command

gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action 'hibernate'

Options:

suspend
hibernate
shutdown
'' (none)


All programs are closed after lid is closed

You need to install Nvidia proprietary drivers.

Run in terminal:

sudo apt-get install nvidia-352 nvidia-prime

and reboot after the driver is installed.


Need to use a UMAX Astra 4100 USB Scanner

Unfortunately your particular scanner is not supported by your Vendor to run on linux.

Looking at the SANE compatibility lists - it is also marked as unsupported by the opensource SANE community.

For your next scanner purchase you should consult the SANE website for linux compatibility if the Vendor themselves say they do not have a linux driver.


how do I write an ISO file to disk under Ubuntu 16.04?

As of 16.04, a CD/DVD burning application is no longer installed by default. You will need to do so yourself.

Find Brasero in the software center (or enter sudo apt install brasero in a terminal). For a longer explanation with screenshots, see the DVD burning guide for 16.04 here.


Changed ownership/read,write on important system files, including SUDO

Use the ubuntu installation disk and reboot into the 'rescue' mode.

You will then get a limited root shell and can mount the affected disk(s) and use chown/chmod to fix the problem files.

Then remove the ubuntu installation disk and reboot.


Try Grub Customizer.  If you don't have it installed, you can install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Once installed, and you open the applications,  go to Appearance settings, and change backgroun colour


Default mount options on auto-mounted NTFS partitions (how to add `noexec` and `fmask=0111`?)

if the default mounting options are hard-coded, what I have to recompile to change them

Edit the file device.c with your custom defaults:

mkdir -p build/udisks
cd build/udisks
apt-get source udisks
gedit udisks-1.0.1/src/device.c

Search for ntfs_defaults, edit, save and exit.
If the mount option isn't already on ntfs_allow list below ntfs_defaults, must also add that new option to ntfs_allow.

Build (see the other answer for a pbuilder way):

cd udisks-1.0.1
dch -l custom "Mount custom defaults fix."
dpkg-buildpackage -b -us -uc -rfakeroot

Install the newly compiled udisk:

sudo dpkg -i ../udisks_1.0.1-1ubuntu1custom1_amd64.deb


PowerPC G4 graphics adapter ATI RV350 [Mobility Radeon 9600 M10] driver is unclaimed

Well, I fixed the pixels and bad color with

sudo apt-get install xserver-xorg-video-ati

Hopefully that can help someone.


i recommend to put 12.04 back on as it more stable lts version for 5 years of support.Dash is no doubt working faster in 12.04 and there are almoust no graphic issues.Also the amount of available apps is bigger for 12.04.For now 12.10 is quite unstable.They will fix it in few mounths i guess.  By now if you still preffer to use 12.10 release check out this link maybe it will be usefull http://www.ubuntuvibes.com/2012/10/make-unity-more-responsive-in-ubuntu.html I would recommend installing gnome fallback desktop environment or any other gnome 3.6 i heard a lot faster then unity. Try  xfce desktop wich is faster and stable or chose pupy linux distro..i guess its based on ubuntu and optimized for the older pc-s.


Belkin N600 USB Wireless adapter on Ubuntu 14.10 problem?

Based on your device ID; Device 006: ID 050d:110a Belkin Components, it is driven by the relatively new driver 8192du.  Please get a working internet connection and copy and paste these commands, each one at a time.

sudo apt-get install build-essential linux-headers-generic git
git clone https://github.com/lwfinger/rtl8192du.git
cd rtl8192du
make
sudo make install
sudo modprobe 8192du

You probably also need to load the firmware:

sudo cp ~/rtl8192du/rtl8192dufw*  /lib/firmware/rtlwifi
sudo depmod -a

It may take a reboot. Your wireless should now be working. Please let us know as we will have one additional step.


Why does 'echo *' give different results than 'ls *'?

In both cases the * gets expanded by the shell.

echo than just prints the parameters resulting from the expansion.

ls checks for every parameter if it is a directory and lists its contents if it is one.


Suspend problem in ubuntu 14.04.02 (Lenovo z510)

If you are set to dual-boot, you might also see if suspend works correctly in Windows.

I have a different model Lenovo laptop. Mine (E540) and another model (E440) have a BIOS bug that has a very similar sounding effect. (On my model, the workaround is to turn off USB3.0 in the BIOS settings.)

If you confirm the problem affects only linux, I hope you raise a stink with Lenovo in their support forums, or through the place you bought it. Lenovo has a reputation for supporting linux, but things like this imply their stance has changed and they don't even test linux anymore.

Here's the Lenovo forum for your model laptop. I see there are lots of topics mentioning suspend, so you might look through those for recommendations from other users, and open a thread of your own if you don't see one that matches.


What's the meaning of: /dev/rdisk0s1 and /dev/rdisk0s2s1?

I don't know much about iphone but dd to make an image of a mounted partition of a running system? That's usually a pretty bad idea. If this partition is written to in the middle of the operation you'll most likely end up with an inconsistent image.

Not sure what you're trying to achieve but unless you're making an image of an unmounted partition, I can't see what this could be good for due to the above reason.


Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/talkplugin/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-talkplugin

Source:LinuxG


Uninstalling Gstreamer/ updating version in Ubuntu 16.04

Try to check:

which gst-inspect-1.0
which gst-launch-1.0

Locations for both should be equal.

I had similar problem, but sudo ldconfig after sudo make install fixed this. Notice that when specifying export LD_LIBRARY_PATH=/usr/local/lib/ (as in your script) forces command sudo make install to create *.so files for gstreamer in /usr/local/lib/, but gst-inspect-1.0, gst-launch-1.0 use binaries from /usr/lib (not local). So just sync /usr/lib,bin with /usr/local/lib,bin (symlinks or copy). In my case ldconfig after each sudo make install fixed problem.


Issue with partitioned disk while trying to install ubuntu 13.10 along with Windows 8

There are a lot of answers on your question within forum. Like this one Windows 7, 8 are gpt disks commonly. Also read HowTo partition.


There is an article at LinuxConfig for Linux authentication login with USB device.

  accomplished by use of Pluggable Authentication Modules ( PAM ) and some sort of USB storage device such as USB memory stick of Mobile phone with SD card attached.

  This authentication technique can be also further expanded into Two-Factor authentication where two authentication methods involving USB token and one-time password can be merged together to produce a greater security.

A summary of actions,

sudo apt-get install pamusb-tools libpam-usb
sudo pamusb-conf --add-device my-usb-stick
sudo pamusb-conf --add-user ubuntu-user
edit a /etc/pam.d/common-auth file

auth    sufficient      pam_usb.so
auth    required        pam_unix.so nullok_secure
Before you do any changes to /etc/pam.d/common-auth open-up separate terminal with root access. This is just in case that something goes wrong, and you need a root access to change /etc/pam.d/common-auth back to the original configuration.

su ubuntu-user -- "ubuntu-user" is the username from step 3.
There are some more notes at the end


Icons and cursor does not appear after logging in from sleep mode in Ubuntu 16.04

This is probably caused by a bug in how the textures are loaded in Compiz, the compositor in Ubutnu that runs Unity. Compiz is responsible for loading images and stuff into textures among many things. When your laptop goes into suspend the GPU forgets it's memory (otherwise it would have to keep it powered on or save it to disk)

Compiz probably has a bug with textures being invalidated by video ram getting cleared by some drivers, like that nVidia driver. It won't happen on my Intel system because the GPU and CPU essentially share the same memory that is kept in a low power state (and not lost)

Either way, your solution is probably to restart compiz:

 setsid compiz --replace &

It's important to realize this command has a lot of gotchas:

Must be ran with setsid or something else that ensures it doesn't get killed when it's parent goes away. Otherwise compiz will crash after you close you terminal.
Must be ran from the desktop with a display. If you switch to another terminal/display and run this command it won't know which X display to use (you would have to prefix it with DISPLAY=:0 or similar
If you ommit the & you won't be able to run more commands since compiz will be running in your terminal closing it would probably crash compiz.


When installing a program with wine, which directory is C:\ when finished installing?

In Linux your root is just "/" and applications are not installed in one folder only. A directory wine-stable can be found in /opt on my machine (look in File System).

But to start Wine you just need to open the Windows application you want to work with by doubleclicking it and all will run. Wine does not have a UI in itself, it is just a translation layer. Consult their documentation.


Find unique names containing consecutive repeating consonants

You can use -u for unique sorting:

cat allnames.txt | cut -f5 | sort -u | grep -Ei '([bcdfghjklmnpqrstvwxyz])\1'

Here we are assuming that the fields are separated by the tab character (e.g., This\tIs\tA\tFriend\tCarlos), since this is the default delimiter for cut.

If you really need to do this frequently, you might want to write a script, of course.


No.
From man logrotate:

Each  configuration  file  can  set  global  options (local definitions
override global ones, and later definitions override earlier ones)

So, yes.
Again, from the manpage:

hourly Log files are rotated every hour. Note that usually logrotate is
       configured  to  be  run  by  cron daily. You have to change this
       configuration and run logrotate hourly  to  be  able  to  really
       rotate logs hourly.

So, yes, you should move the script. Inspecting the cron.daily script in my system, I think moving it should work fine.


How can I disable Alt-Tab application switching in Cinnamon when a certain program is open?

I have a solution. All what you need is, to start this watcher script:

#!/bin/bash

keySwitchApplication="switch-applications"
keySwitchApplicationBackward="switch-applications-backward"

backupSwitchApplications="$(gsettings get org.gnome.desktop.wm.keybindings "$keySwitchApplication")"
disableSwitchApplications="$(gsettings get org.gnome.desktop.wm.keybindings "$keySwitchApplication" | sed "s/\,*\s*'<Alt>Tab'//")"

backupSwitchApplicationsBackward="$(gsettings get org.gnome.desktop.wm.keybindings "$keySwitchApplicationBackward")"
disableSwitchApplicationsBackward="$(gsettings get org.gnome.desktop.wm.keybindings "$keySwitchApplicationBackward" | sed "s/\,*\s*'<Shift><Alt>Tab'//")"

disabled="0"

while true; do
  isActive=$(wmctrl -lx | awk -v search=$(printf 0x0%x $(xdotool getactivewindow)) -v wm_class="$wm_class" '{ if($1 ~ search && $3 ~ /emacs/) print $3 }')

  if [[ "$isActive" != "" ]]; then
    # echo "active"
    if [[ "$disabled" == "0" ]]; then
      # echo "disable shortcut"
      gsettings set org.gnome.desktop.wm.keybindings "$keySwitchApplication" "$disableSwitchApplications"
      gsettings set org.gnome.desktop.wm.keybindings "$keySwitchApplicationBackward" "$disableSwitchApplicationsBackward"
      disabled="1";
    fi
  else
    # echo "not active"
    if [[ "$disabled" == "1" ]]; then
      # echo "enable shortcut"
      gsettings set org.gnome.desktop.wm.keybindings "$keySwitchApplication" "$backupSwitchApplications"
      gsettings set org.gnome.desktop.wm.keybindings "$keySwitchApplicationBackward" "$backupSwitchApplicationsBackward"
      disabled="0"
    fi;
  fi;
  sleep 1
done

The script checks in a endless loop the window class emacs and disables/enables Alt+Tab and Shift+Alt+Tab

If anything goes wrong, then you can reset the entry to the default settings:

gsettings reset org.gnome.desktop.wm.keybindings switch-applications
gsettings reset org.gnome.desktop.wm.keybindings switch-applications-backward

In my case:

% gsettings reset org.gnome.desktop.wm.keybindings switch-applications
% gsettings get org.gnome.desktop.wm.keybindings switch-applications
['<Super>Tab', '<Alt>Tab']

% gsettings reset org.gnome.desktop.wm.keybindings switch-applications-backward
% gsettings get org.gnome.desktop.wm.keybindings switch-applications-backward
['<Shift><Super>Tab', '<Shift><Alt>Tab']

Credits

@Serg and his answer How to disable input language switching in terminal
@JacobVlijm for his comments


Radomly black screens only on train rides!

This may not be the most answer-like answer, but it is too long to put into a comment.

  I have ruled out a hardware problem, because when I hit the sleep-button on my keyboard (FN + ESC), the screen comes back for a fraction of a second before the system is going into sleep mode. This wouldn't happen, if it was a hardware issue.

If anything, this points to a hardware problem. It certainly doesn't disprove one. Zalgo is most likely onto something with the hard drive. While I'm glad you're thinking (most questions here are from people who think Googling is beneath them), I'm not exactly sure what you were thinking or what logic you used to arrive to this conclusion.

You haven't told us the model of the laptop, but I had an HP ProBook for a while, and one of its cool features was that it had an accelerometer in it. If that accelerometer detected sudden motion, it would park the hard drive (if it was supported) so as to avoid any damage to the disks after a fall or bang.

It's possible your laptop has this same feature. If the train is not the smoothest, and the ride is bumpy, then the accelerometer may be detecting this as a fall and parking the drive. That can certainly cause the screen to black out.

Hitting the sleep shortcut probably forces the drive back into operation, so the OS can read from it and sleep. That would make the screen come on for a second, since the hard drive is running again.

  I am thinking that the problem might be the missing network connection. Maybe the network manager "goes to sleep" and somehow kills another process? But then again, it happens so randomly, sometimes after 5 minutes, sometimes after an hour. Ones the screen is black, if I close the lid (go to sleep) and then open it again, the image is back.

This is highly unlikely. If Ubuntu caused the screen to black out whenever there was no network connection, I'm fairly certain this question would not have been my first time hearing about it.

I think the most likely culprit is some overactive hard drive safety feature, or just bad casing for the drive bay. If it's the former, you may be able to turn it off in the BIOS settings (if it exists). If your computer has no such feature, then you might want to bring the laptops into a repair shop, or at least research if this is a known defect.


How to enable guest sessions on Ubuntu 18.04 or later?

Is there any way you could revive Guest Sessions in a future LTS distro?

You seem to believe we can get this back into a distribution but we are just users (except for a couple of people that are also employees of Canonical).

And if you want it back: install LightDM.

sudo apt install lightdm

Create a configuration file

sudo gedit /etc/lightdm/lightdm.conf.d/50-enable-guest.conf

and copy the contents below to it:

[Seat:*]
allow-guest=true

Reboot the computer and pick lightdm at the login screen.

Do read the wiki page CustomizeGuestSession and the discussion on removing guest accounts.

Before you start using it: Guest Account is NOT secure: the data from normal users on the system is not secure from the guest. The same goes for the data from the guest. And the guest can view system files.


A Music player that lets you sort albums by their year?

Most music players let you sort your music library by the album year if that was included in the meta-tags of your files.

Often it is only a setting to be made in the application's preferences. For Rhythmbox the menu Edit > Preferences > General Tab will open below box for ticking "Year" to add a "Year" (or any other choice) column to the library browser window:

My favorite player Guayadeque will open the menu to define columns for sorting on right click on the top bar of the library window:

With Guayadeque you can also sort the album view ascending or descending by year:


How to permanently set kernel boot option nomodeset on an installed OS (not wubi)

Open a terminal by pressing Ctrl+Alt+T and enter:

gksudo gedit /etc/default/grub

Or if that does not work (as mentioned in the comments)

sudo gedit /etc/default/grub

Enter your password when prompted, and the file `grub' will open in
gedit.
Look for the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Save the file and exit.

At the command prompt enter:

sudo update-grub

This will update Grub's config with the new settings permanently.


C# code runs natively in Ubuntu.
The terminal and MonoDevelop (monodevelop) from the default Ubuntu repositories is maybe all you need. MonoDevelop can be installed from the default Ubuntu repositories in Ubuntu 17.10 and earlier. This link tells how to run C# programs from the terminal and in MonoDevelop: How do I install Mono for 17.10?

Visual Studio Code will show up in Ubuntu Software application if you search for "vscode" or it can be installed from the terminal by running the command sudo snap install vscode --classic A snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Visual Studio Code extensions are installed into the user's home directory.
After it is installed, Visual Studio Code requires additional configuration to get the debugging features of each programming language working. Depending on the programming language, this may require downloading a large amount of additional software into your home directory. This isn't the same as installing software through Wine, but Visual Studio Code will recommend installing a lot of the same software in Ubuntu that is installed in Windows which makes Ubuntu into what may be too much like a "hybrid" operating system experience for some users.
Visual Studio Code is a good and useful code editor for exactly the opposite reason. Visual Studio Code is a lot smaller than Microsoft Visual Studio, however many Visual Studio extensions can also be installed in Visual Studio Code by selecting View -> Extensions and then search for the extension that you want to install.

The wonderful C# is open source and cross platform now that Microsoft has released a version of .NET Core, and it's blazingly fast. To install .NET Core in Ubuntu open the terminal and type:
sudo snap install dotnet-sdk


Failed to move *.deb to /var/cache/apt-cacher/packages/*.deb: Permission denied

There are 3 options.

Use the read only option:

sudo /usr/share/apt-cacher/apt-cacher-import.pl -r /var/cache/apt/archives/

Use the symlink option:

sudo /usr/share/apt-cacher/apt-cacher-import.pl -l /var/cache/apt/archives/

Remove the offending package and try again:

sudo rm /var/cache/apt/archives/account-plugin-facebook_0.8-0ubuntu2.2_i386.deb to /var/cache/apt-cacher/packages/account-plugin-facebook_0.8-0ubuntu2.2_i386.deb
sudo /usr/share/apt-cacher/apt-cacher-import.pl /var/cache/apt/archives/


It appears I didn't properly mount the hard drive I'm working in with correct permissions. So files just won't work outright. This program works when created in a different, correctly mounted, drive.


Why does running ps result in a "Cannot allocate memory" error?

I have had the same issue with ps since 12.04.2 updates were applied.  We are using AD accounts, but with an LDAP setup.

I have not found a solution, but running an older kernel also stops the problem for me.  What I've found is

I get the ps error for any user when any process is owned by a remote user AND that user is a member of a large number of groups
I do not get the error if the remote user has no more than 144 group memberships.  144 was the magic number on all four servers I tested, but could be affected by RAM available.
I was able to duplicate the problem with local users, but it took more groups.
On one server which had tons of RAM to allocate ps failed with the error "Signal 11 (SEGV) caught by ps (procps version 3.2.8)."

Here is part of an strace of ps run as root.  It chokes when it hits the process owned by the user with lots of groups

stat("/proc/31182", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/31182/stat", O_RDONLY)      = 6
read(6, "31182 (su) S 24612 31182 24612 34816 31183 4202752 644 0 6 0 0 0 0 0 20 0 1 0 34284825 60358656 481 18446744073709551615 4194304 4224060 140733222184144 140733222183392 140462670197822 0 2147196671 0 16384 18446744071579286484 0 0 17 0 0 0 0 0 0\n", 1023) = 246
close(6)                                = 0
open("/proc/31182/status", O_RDONLY)    = 6
read(6, "Name:\tsu\nState:\tS (sleeping)\nTgid:\t31182\nPid:\t31182\nPPid:\t24612\nTracerPid:\t0\nUid:\t1001\t1001\t1001\t1001\nGid:\t1351\t1351\t1351\t1351\nFDSize:\t256\nGroups:\t1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1", 1023) = 1023
close(6)                                = 0
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f806f2dd000
mremap(0x7f806f2dd000, 135168, 266240, MREMAP_MAYMOVE) = 0x7f806f29c000
mremap(0x7f806f29c000, 266240, 528384, MREMAP_MAYMOVE) = 0x7f806fd68000
mremap(0x7f806fd68000, 528384, 1052672, MREMAP_MAYMOVE) = 0x7f806fc67000
mremap(0x7f806fc67000, 1052672, 2101248, MREMAP_MAYMOVE) = 0x7f806f0fd000
mremap(0x7f806f0fd000, 2101248, 4198400, MREMAP_MAYMOVE) = 0x7f806ecfc000
mremap(0x7f806ecfc000, 4198400, 8392704, MREMAP_MAYMOVE) = 0x7f806e4fb000
mremap(0x7f806e4fb000, 8392704, 16781312, MREMAP_MAYMOVE) = 0x7f806d4fa000
mremap(0x7f806d4fa000, 16781312, 33558528, MREMAP_MAYMOVE) = 0x7f806b4f9000
mremap(0x7f806b4f9000, 33558528, 67112960, MREMAP_MAYMOVE) = 0x7f80674f8000
mremap(0x7f80674f8000, 67112960, 134221824, MREMAP_MAYMOVE) = 0x7f805f4f7000
mremap(0x7f805f4f7000, 134221824, 268439552, MREMAP_MAYMOVE) = 0x7f804f4f6000
mremap(0x7f804f4f6000, 268439552, 536875008, MREMAP_MAYMOVE) = 0x7f802f4f5000
mremap(0x7f802f4f5000, 536875008, 1073745920, MREMAP_MAYMOVE) = -1 EFAULT (Bad address)
mmap(NULL, 1073745920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0x40e45000)                         = 0xe3c000
mmap(NULL, 1073876992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 6
read(6, "0\n", 8192)                    = 2
close(6)                                = 0
mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f7fa74d3000
munmap(0x7f7fa74d3000, 11718656)        = 0
munmap(0x7f7fac000000, 55390208)        = 0
mprotect(0x7f7fa8000000, 135168, PROT_READ|PROT_WRITE) = 0
mmap(NULL, 1073745920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
write(2, "xrealloc: realloc(1073741824) failed", 36xrealloc: realloc(1073741824) failed) = 36
write(2, "Cannot allocate memory\n", 23Cannot allocate memory

I was able to duplicate the problem with just local users with these steps.  The number of groups needed to break ps was larger, so it may be dependent on RAM in the server.

root@alowther-d02:~# for i in $(seq 180); do groupadd group$i ; done
root@alowther-d02:~# useradd user1
root@alowther-d02:~# su - user1 -c ps
No directory, logging in with HOME=/
  PID TTY          TIME CMD
 5182 pts/0    00:00:00 su
 5183 pts/0    00:00:00 sh
 5185 pts/0    00:00:00 ps
root@alowther-d02:~# for i in $(seq 180); do adduser user1 group$i; done > /dev/null
root@alowther-d02:~# su - user1 -c ps
xrealloc: realloc(1073741824) failedCannot allocate memory

I should probably file a bug report, but this question is the only thing I've found related to this problem.


Chromium web-app creation doesn't work in 12.10?

The problem is within the file Chromium creates. Using your example, this is the .desktop it creates:

#!/usr/bin/env xdg-open[Desktop Entry]
Version=1.0
Name=Buy Me a Pie! - Lista de Compras
Exec=/usr/bin/chromium-browser --app=http://buymeapie.com/
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chrome-http___buymeapie.com_
Categories=Network;WebBrowser;
StartupNotify=true
StartupWMClass=buymeapie.com

the problem is in the first line, the "shebang line" and the desktop entry definition should be in two different lines

#!/usr/bin/env xdg-open
[Desktop Entry]
(...)

So this should be a Chromium bug. To correct this, you only have to open the .desktop created with a text editor and add a new line between those two lines.

PS: The Exec line is correct: if you execute /usr/bin/chromium-browser --app=http://buymeapie.com/ in a terminal the  website is shown.


You can use BuGLE:

$ BUGLE_CHAIN=showfps LD_PRELOAD=/home/sa/Temp/bugle/lib/libbugle.so glxgears

$ cat bugle.log
[INFO] logstats.frames per second: 36.2 fps
[INFO] logstats.frames per second: 60.1 fps
[INFO] logstats.frames per second: 60.0 fps
[INFO] logstats.frames per second: 59.9 fps
[...]

$ awk '{ s += $5 } END { print "average framerate: ", s/NR }' bugle.log
average framerate:  59.7136

You will need to compile and configure BuGLE but this will work with any software using OpenGL to render graphics.

BuGLE HomePage

Frapix is a software that can make something similar (promises to be similar to Fraps), but keep in mind that BuGLE is the "default" solution to this.

Frapix Google Project Home


Kensington Trackball button configuration

xorg.conf files tend to be a pain. You can go ahead and edit it if you want, but, personally, I would not.

There's a commandline tool called xbindkeys. It allows you to route specific button presses to commands. There's a full explanation here, but I will try to explain it briefly here.

Firstly, if you want to bind the keys to actions, you need to set up keyboard shortcuts for them (Settings > Keyboard > Shortcuts). You do not need to do this to launch programs.

You'll need to install xbindkeys and xautomation.

sudo apt-get install xbindkeys xautomation

Then, open a terminal (Ctrl+Alt+T) and run the xev command. It should pop up a small little window with a white box and a black background. Try not to move the mouse (it will make things hard to find), and click the button you want to set up. Then, go back to the terminal and find the last ButtonPress and/or ButtonRelease events (either one). The event will give you a number for the button you pressed (button <number>, towards the end). Remember that number.

Now, in a new terminal instance, do nano ~/.xbindkeysrc. This will create a text file by which you can configure xbindkeys.

For that key, create an entry like so:

"command"
 b: <button number>

For example, say you wanted to open Firefox when you pressed the mouse's "home" button (for me, button 10):

# Run Firefox when "home" pressed
"firefox"
 b: 10

Or, if you wanted to bind it to a desktop action (like minimize all windows, like shown below), you would tell it to simulate the keybinding with xte:

# Minimize all windows on "2" button press
"xte 'keydown Control_L' 'keydown Alt_L' 'key D' 'keyup Alt_L' 'keyup Control_L'"
  b: 11

You would repeat this process for the other buttons.

When you're done, save the file (Ctrl+O and Enter), and close nano (Ctrl+X).

Then, just launch xbindkeys outside the terminal (Alt+F2, then type xbindkeys).

However, you will want it to autolaunch after every shutdown. Add it to your autostart configuration (Settings > Session > Startup > Application Autostart, add xbindkeys).


WiFi Hard Blocked on Toshiba Satellite a665-s6086

Did a little digging and this problem is similar where WiFi was working fine and just died one day: rfkill hard block my wireless when I switch it off/on

First check if hardware encryption is enabled by typing: modinfo iwlwifi. Please update your question with the output of that command if this answer doesn't work.

The solution proposed (in the link) is to do this:

sudo modprobe iwlwifi nohwcrypt

There are other parameters that can be the problem such as n11 which is described in this problem: Ubuntu 14.04.1 Intel Centrino Advanced-N + WiMax 6250. The solution there was to use:

sudo modprobe iwlwifi 11n_disable=1

However in this case the OP never had a working WiFi so it isn't as close a match as the first solution.

If the modprobe change work in the current boot session, both links describe how to make it permanent on future boots. Hopefully this solves your problem or at least gets you on the right problem solving path.

Edit 1 New parameters based on comments

Based on comments in parameters try this (based on bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1249008:

rmmod iwldvm iwlwifi
modprobe iwlwifi power_save=0 swcrypto=1 power_level=1


You just need a = symbol after the --strip-components option, so your command would be:

sudo tar --strip-components=1 -C /usr/local/Mandrill -zxf Mandrill.tar.gz

The man page gives the clue in the description of the --strip-components option:

  --strip-components=NUMBER
            strip NUMBER leading components from file names on extraction

You can use the man tar command to read the manual for the tar command.


uninstalling 'no-ip' from the terminal - how?

There is a typo in the above command:

/usr/local/bin/noip2 -C (-C (dash capital C) will create the default config file)

To uninstall if you aren't comfortable reviewing the changes made and reversing them, I suggest you open a ticket with no-ip.com.

Source


Unable to connect other drivers,that installed in windows operating system

If I understood well, you want the My Computer menu on your desktop. It's simple:

Download the following link: https://copy.com/pUp0PtnwH69v.
Drag the downloaded file to the desktop (or where you want).
Right-click the file, go to Properties > Permissions. Check the box titled Allow executing file as program.

That simple. Here's a simple screenshot as an example:


How to set svn info response/call result language?

Maybe this chapter of the SVN book can help in your matter: http://svnbook.red-bean.com/en/1.2/svn.advanced.l10n.html

In simple words, if you export LC_MESSAGES to en_US, SVN should honor your locale.

$ export LC_MESSAGES=en_US


xsane scans only top of document while entire document is selected in preview

If you look at the main window in Xsane, next to the scan button there is the dimension of the scanable area defined for your scanning device. Below that is the area you've selected in the preview window.  The area actually scanned will be the product of these 2 areas ie that bit that overlaps.  While you can change the preview area the area defined for your device is fixed by the manufacturer's device settings file.  This is a .drc text file which lives in ~/.sane/xsane.  I'm sure that you could edit it if you knew what you were doing but I don't.
To fix the problem I re-installed the latest version of HPLIP and set up the printer/scanner, and then reinstalled Xsane. Having done that ...

1)  In Xsane GUI go into Window/ShowAdvancedOptions and make the window as big as possible eg:
        Top L x = 0.0
        Top L y = 0.0
        Bottom R x = 21.59
        Bottom R x = 30.057

2)  From preferences, reload device settings eg:
        Hewlett-Packard:OfficeJet__6950.drc

If that doesn't cure the problem, contact the device supplier's support for the correct data set. If your device is supported by Xsane and you've installed the device properly before installing Xsane, then the correct file in ~/.sane/xsane/ and it can simply be loaded from the Preferences window.

I hope that helps
jg


After deleting Ubuntu partition I get grub rescue> and can't boot Windows

Try using "Boot-Repair-Disk" https://sourceforge.net/p/boot-repair-cd/home/Home/     Your boot information is still in your windows grub file, "Boot-Repair-Disk will fix your grub problem. Just follow instructions on the site above and you will be fine>


Ubuntu 12.4lts iPhone 5 can't mount. test this computer loops endlessly

I'm using Ubuntu 12.10 with an iPhone 4S running the latest iOS 7 and getting the same issue. Luckily I found a workaround:

Plug in your phone
On your phone, click the "Trust" option
On your Ubuntu system, click the "OK" on the popup dialog
(You should see the iphone get mounted)
On your Ubuntu system, click the "OK" on the next dialog that says something like "do you want to continue?"

Now ignore the loop!

You should be able to manually navigate to your iPhone within Ubuntu and see all the usual iphone folders, such as DCIM, and access items with no issues.

Hope this works for others until there's a fix!


How to modify xdotool output to export them as variables?

You'll find the answer in the xdotool man page:

getmouselocation [--shell]
       Outputs the x, y, screen, and window id of the mouse cursor.
       Screen numbers will be nonzero if you have multiple monitors
       and are not using Xinerama.

       --shell
           This makes getmouselocation output shell data you can eval. Example:

            % xdotool getmouselocation --shell
            X=880
            Y=443
            SCREEN=0
            WINDOW=16777250

            % eval $(xdotool getmouselocation --shell)
            % echo $X,$Y
            714,324


How to make Thunderbird NOT use Bing as search engine?

Well, if you want to use Google instead, simply install this add-on: Google Search for Thunderbird

Note that this kb article also explain how you can use another search engine: https://support.mozillamessaging.com/en-US/kb/add-search-engine-open-search

I don't think that it is possible to disable it completely.


/usr/lib/cups/backend/hp has failed with an HP LaserJet p3005

I have had a few issues with HP printers in the past.
The reason I keep buying HP printers is because to some extent they do support open source.

Here is all the issues I  have had suggested install as you requested and solutions

Here are a few things that helped me
First make sure your printer is supported
http://hplipopensource.com/hplip-web/supported_devices/index.html
You can check your printer for hplip compatibility I usually check the list before buying a new printer.

Install hplip,
Check cups version #cups-config --version to make sure its updated.
install sane if its an all in one and you might ever want to use the scanner later.

Sane recommends
uncomment hpaio in /etc/sane.d/dll.conf.
Running hp-setup as root may help you add your device. (do this)

Setting up a static route for the printer. (this usually also is the issue if the computer was saying that it printed but nothing printed, DHCP would assign a new address occasionally and they didnt want to talk anymore.. static makes everything easier) this might be your issue if it works right after you install it again but not later

Other help ...
tail /var/log/cups/error_log  this will display cups errors newest to oldest.

If you see something like this
printer-state-reasons=paused
Just resume printing in cups printer admin page.


What is the performance overhead of encrypted /home?

I have been using the encrypted home directory feature for years and I can tell you that while it behaves fine under normal circumstances it will bring your machine to its knees when doing any kind of intense file operations.

I have a quad-core Pentium i7 with 16GB of RAM from System7.  By any measure it is a lightening fast laptop with a SATA 7200 RPM drive. Just today when I was unzipping a file with 20,000 small text files in it (take 10 minutes), my system is essentially unusable.  Everything that touches the file system has a 1-2 second delay...including the web browser.  My experience is exactly that of the OP -- the encrypted home directory is about 15x slower than unencrypted.

I didn't think anything about it because I am so used to it (this is my 4th laptop).  On the wild chance that somebody has a tip on how to improve it, I thought I'd search here.

I encrypt my home directory because I HAVE to.  If you don't have to...then don't.


How to use kexec reboot to new kernel from diskless thinclient

Found pxe-kexec which doing very similar to what I am looking for.

pxe-kexec use tftp/ftp to download image from PXE server and kexec to reboot.

In order to achieve the reboot, you need to

setup a tftp server for hosting kernel image
setup a NFS server for hosting post-boot system disk.
run pxe-kexec [my-server-ip]


I think it literally means to add "nvidia" to the end of the file.

$ sudo su
 # echo "nvidia" >> /etc/modules

or with gedit:

$ gksu gedit /etc/modules

I think you are just adding the module name to the file. That's why it's just nvidia.


Is it possible to add registry entries to the wine registry and make illustrator work?

Wine comes with its own implementation of the Windows Registry Editor, which can be started with the following command:

wine regedit

It looks and behaves mostly the same as Microsoft's implementation of the tool, so if you are used to that version, you shouldn't have too much trouble.


NVIDIA:
1. Run nvidia-settings
2. Screen 0 > OpenGl > Sync to VBLank

Hope this helped!

Source: http://forums.steampowered.com/forums/showthread.php?t=3262689


What is the difference between Desktop and Server?

Server version of Ubuntu comes without any desktop graphical environment.

Only with command line interface. It can't be used as a desktop computer in the common meaning of these words.

But desktop environment can be installed later.

Short answer: If you plan to use graphical interface, do NOT install a server version. Except some special cases when normal system does not install.


Kubuntu - kcm_printer_manager - Windows printer via SAMBA - Browse button greyed out

I discovered it is greyed out because it is a feature not implemented yet


Good answers to your questions fill whole bookshelves.

But, it is quite easy to set up an rdp connection...

I try to answer some of those questions and leading you in the right direction:

You need to know formats for things, like you know formats for Date, currency and temperature in your Country. At least I hope you do or know how to ask Wikipedia for the correct format.
You should use an RDP or VNC Connection. RDP should work out of the box, while VNC needs an extra VNC-Server Software on the machine you want to connect to.
Relation: You have an RDP Client which loggs into another machine over network and sends back the Desktop, giving you the ability to interact with it from a distance.
Profile Name ist the name of your connection Profil. Just choose a remarkable Name for your connection (I always use the name of the machine I connect to in the profile, but that is for you to choose.).
Server Name: IP or Hostname of the Machine you want to connect to. ipv4 Ips have the format 000.000.000.000, where minimum is 0.0.0.0 and max is 255.255.255.255, Read an Article about TCP/IP if you are interestes in how this IP thingy works.
User Name: Set the Username from an active user on the machine you want to connect to. Remeber the relation. All you do is connectiong to another machine with user Credentials.
Passwort: read the last paragraph and guess for urself.
Advanced: is for advanced users, if you are not an advanced user (if you do not know, you are not!) just do not touch the settings. Maybe you want to adjust the Quality of tansmitted Desktop pictures to higher Quality, if you have a fast Internet connection.
In the end: you need to reach the machine you want to connect to. Since I cannot know how your networks are build, I cannot help you with that. I just want to point out that you might need some port forwarding at your remote machines network router (remote machine is the machine you want to connect to), so the connecting client can reach the remote Desktop.


Installing Ubuntu onto MacBook Pro via USB

I suggest you try the Mac version (64bit perhaps) of Ubuntu (or whatever flavor you wish) available on the main Ubuntu release page.

Then you put the ISO on the USB drive using Unetbootin for Mac. Thanks to REFIt or Refind it will work.

Source: That's The Way You Do It: How To Install Ubuntu 13.04 On A Macbook Air Using USB Drive


Need to give permissions to /tmp/cache and /tmp/templates_c but can't find them

The commands should be

sudo chmod 777 /tmp/cache
sudo chmod 777 /tmp/templates_c

The directories tmp/ is actually /tmp and of course those files sould have been created by your application.


Open /usr/share/applications and look for a file named "OpenJDK Java 6 Runtime". If it doesn't exists create a file named /usr/share/applications/openjdk-6-java.desktop with the following contents:

[Desktop Entry]
Name=OpenJDK Java 6 Runtime
Comment=OpenJDK Java 6 Runtime
Exec=cautious-launcher %f /usr/lib/jvm/java-6-openjdk-i386/bin/java -jar
Terminal=false
Type=Application
Icon=openjdk-6
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true

You should change the "/usr/lib/jvm/java-6-openjdk-i386/bin/java" part of Exec to the location of java on your system. Then reboot and the option should be there.


how come sudo give root privileges for a user not in /etc/sudoers?

By default all members of admin group can use sudo to get root privileges:

%admin ALL=(ALL) ALL