Wrong path when try to restore MBR with dd ! Any way to fix? [solved]

Luckily you have only overwritten the first 512 bytes of the disk, that is where the MBR normally resides (/dev/sda1 is the begin of the first partition, it does not contain the MBR).

I have successfully used Testdisk in the past when the partition table was wiped. See these links for more details:

Recovering Partition Tables - GParted manual
I've wiped my partition table using gparted, is there a way to recover my partition?
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

The command that is suggested in the manual is testdisk /dev/sda. Be sure to read above references to learn more about the steps.


It is filesystem and partition dependant, different flesystems and partitions will use different methods. AFAIK it's usually used on lvm partitions. If you are using Gparted, the safe thing to do is to umount it first.

Usually you use lvextend and resizefs in lvm partitions. You can find more info on their man pages. Again it's not a good idea to do with "normal" partitions.


WiFi / Ethernet connection on RTL8101 & RTL8723BE drops repeatedly every 5 - 10 seconds

Not a full solution, but downloading WICD decreased the frequency of network problems I experienced when I was using lubuntu.


I've got the same issue here. The downloaded packages are *.deb files, but clicking the downloaded file in Chrome opens the Software app, and I get the Install screen, but clicking the install button does nothing whatsoever.

I've had to resort to installing those packages from the terminal using sudo apt install followed by the full path to the deb file. This does work, but it's a little annoying.


Why am I getting a "failed to create pid file...Permission Denied" error?

If you have a program foo trying to create/write to a file, the permissions of the foo binary don't matter, but the user it's running as makes all the difference.

In this case, foo is trying to write to /var/run, which is owned by root and only writable by root.

So you would have to run the program as sudo foo for it to create that PID file. Please consider the security implications of allowing a program to run as root before you do it...


How to avoid unintended mouse moves in Unity Launcher?

Sounds familiar.

Simulated left-click

An elegant solution would be, I think, to make her use the mouse, but replace the "real" mouse click by the key combination Alt+Z. I would also add a small delay of 1 second, to make the action "relaxed".

How to set up

Setup is simple:

Install xdotool

sudo apt-get install xdotool

Add the shortut key: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

/bin/bash -c "sleep 1 && xdotool click 1"

to the key shortcut Alt+Z.

Now she can simply move the mouse to whatever she wants to click, then press Alt+Z to click.

(I posted this answer with the simulated click :) )


Ubuntu 14.04 starting issue after official upgrade from 12.04 LTS

This is not really an answer but an advice...
Downloading new version ISO image and making a BootDVD is better than Upgrading directly from lower versions to new ones.
Because, The Upgrade you do in your ubuntu takes more time to download an install all the package repositories you've currently installed in your ubuntu.
And that process downloads the applications you've currently installed even it doesn't requires an update !
So the time is wasting there.
And there are lot of other problems too.
The problem may have a reason of your internet connection too..
If your connection lags a little while the downloading going on, Then it will cause the upgrade process to miss installing some files from downloading !!!
So you should have experienced this problem.
Your internet connection cheated you !
So I prefer you to download Ubuntu ISO image and Burn it into a DVD.Then install Ubuntu's new version with it !
Thats safe and better than the internet upgrade !
And also one more problem with internet upgrade : The time you've spend for the upgrade will be wasted and useless if your computer gets to crash or repair !!!
You can download the Ubuntu iso file by clicking here

But I prefer you to use torrent download to download it without spenting much time !
Go to torrents page  :
Click here


If you are using Gnome with Compiz, install CompizConfig Settings Manager.

You can find it here:

Or install it via Terminal:

sudo apt-get install compizconfig-settings-manager

Then open it and go to Window Management > Place Windows, enable it, and in "Placement Mode" choose Centered.


Install Canon MX472 scanner on Ubuntu 14.10

use the printer- and scanner-driver from cannon!

if you are searching on the cannon-site you only will find a MX477, but there are drivers for the whole MX470-series.

if you don't know how to go on have a look at these instructions:
(notice: Linux Mint is based on Ubuntu)

http://forums.linuxmint.com/viewtopic.php?f=49&t=165407
http://forums.linuxmint.com/viewtopic.php?f=51&t=167625
http://ubuntuforums.org/showthread.php?t=2128016


Any way to play Windows Games on Ubuntu?

You could always cheat and use the software 'VirtualBox' and create a Windows VM?


How can I get ImageJ to open all files in the same session?

The following solution works only for multiple files at once and not for new images. But to do this, I believe, you have to change the source code of ImageJ.

Create an  additionally private desktop file imagej.desktop.

cp /usr/share/applications/imagej.desktop ~/.local/share/applications
sudo chown $USER:$USER ~/.local/share/applications/imagej.desktop
nano ~/.local/share/applications/imagej.desktop

Find the Exec line:

Exec=imagej %f

and replace the line with

Exec=imagej %F

Save the file
Restart nautilus

nautilus -q

Add...  Accepts...
%f      a single filename.
%F      multiple filenames.
%u      a single URL.
%U      multiple URLs.
%d      a single directory. Used in conjunction with %f to locate a file.
%D      multiple directories. Used in conjunction with %F to locate files.
%n      a single filename without a path.
%N      multiple filenames without paths.
%k      a URI or local filename of the location of the desktop file.
%v      the name of the Device entry.


Wifi adapters not found in Ubuntu 18.04 LTS on HP model 15-db0190nb

Here's a future reference to the article OP used to solved the problem:

Reboot and go to BIOS to make sure wireless network are enabled. And plug laptop into a wired connection.

Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

You may first install the building tools first via command:

sudo apt-get install linux-headers-$(uname -r) build-essential git

Run commands to get newest Realtek wifi drivers:

git clone https://github.com/lwfinger/rtlwifi_new.git

Install drivers:

sudo make install

cd rtlwifi_new/ && git checkout origin/extended -b extended

Load drivers with:

sudo modprobe -r rtl8723de

sudo modprobe rtl8723de

Note: You may need to research which driver works for your wi-fi device.

You should get wireless signal. If not try these fixes:

If that does not work, you may remove and blacklist the broadcom drivers and restart:

sudo apt purge bcmwl-kernel-source

sudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.conf

sudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf

In addition, (thanks to jeremy31) if you notice weak signal try command:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not run:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2

(REQUIRED) Or write the rule into configuration. REPLACE X with whatever setting (1, 2, or 3) worked best.

echo "options rtl8723de ant_sel=X" | sudo tee /etc/modprobe.d/rtl8723de.conf


Reinstate System Menu after reverting to Gnome Classic?

Sorry, the system menu cannot be brought back. You can get the shortcuts by enabling the "Other" menu. See http://ubuntugenius.wordpress.com/2011/10/17/ubuntu-11-10-upgrade-missing-your-system-menu-preferences-administration-launchers/ .


Wireless power management turns back on in 15.04

Hooks in /etc/pm/ are ignored in Ubuntu 15.04. Instead you have to create systemd services and enable them.

Although first try adding

sleep 10
iwconfig wlan1 power off
exit 0

to your /etc/rc.local file. This should turn of power management at boot and might help with the connection. To permanently disable the power management look here.

More info about hooks in /etc/pm not working anymore here. To create systemd services have a look at ArchWiki.

Hope this helps.


Cannot connect to Eaton 9130 UPS: Unable to find POWERWARE UPS device on USB bus

Might be worthwhile to try out the other driver for Eaton 9130 usbhid-ups as in

/lib/nut/usbhid-ups -a Powerware9130 -DDDDD

Also the the USB cable if it's too long can sometimes mess up the connection (I know it sounds trivial but it happened twice on my end)


Why can I not use gksudo/sudo with any GUI program?

What does:

  not able anymore to run any graphical programs with gksudo or sudo

mean?

If you see:

  username is not in the sudoers file.  This incident will be reported

While trying to "sudo" smth, instructions from psychocats.net/ubuntu/fixsudo might be helpful to you.

Generally, you need to have root shell to check and, if necessary, modify /etc/sudoers file. You should also be in admin group:

usermod -a -G admin username #from the root shell


Time and date is missing on top bar of Ubuntu 18.04 LTS

It seems you've logged into a Unity session somehow. If that is not intended, you may want to login to a GNOME session (default in 18.04).

To do that when you boot your system and get to the GDM login screen you should find a cogwheel (⚙) next to the sign in button. If you click on the cogwheel you should find an Ubuntu (and Ubuntu on Wayland) option. Select it and log in.


ubuntu 15.04 64bit in desktop can't change time zone

I have the same problem on one of my computer that doesn't display the french time correctly. I solved it by checking "Manually" in the Time and Date Settings, accessible by clicking on the clock in the panel. You can then manually choose the time you want.

If anybody has a cleaner way to solve the problem I'll be happy to learn it.


How do I know what to whitelist to allow my application into the system tray?

Enable the system tray icon in your applications
Run unity from a gnome-terminal

You will see something like this in the output:

** (compiz:3932): DEBUG: TrayChild Rejected: Opera opera Opera

I'm not exactly sure why it's those three in this case, but just adding opera or Opera to the whitelist works. If you start Unity again, you'll get:

** (compiz:4034): DEBUG: TrayChild Accepted: Opera opera Opera


Lines starting with ; are comments, used for examples and explanations. You need to add the "actual" entries, for example

date.timezone = "Asia/Tokyo"

instead of

;date.timezone = "Asia/Tokyo"

I'd recommend to add your entries instead of editing the existing, out-commented entries. So you can go back to the default just by deleting your own additions.

Additionally, there may be multiple php.ini files. You need to check which one is used. It mostly depends on the method you chose to integrate PHP with your webserver (probably Apache http server). If you're using the mod_php module, you need to look for php.ini in a subdirectory "apache2". Other subdirectories for other integration methods may be "cgi" (CGI), "cli" (PHP on the command line), "fpm" (php-fpm) and others.

You can see which php.ini is used in the output of PHP's phpinfo() function.


Enable [command] key to register as something other than just [ctrl]?

Translating the Cmd key to Ctrl within the VM is a VMware Fusion feature. I believe it can be disabled from either the VMware Fusion global preferences or the individual VM settings.


Ubuntu changing background color in text mode boot

One thing you can try is to change the palette of the terminal (i.e., change the definitions of the colours). For example:

echo -en '\e]P0FFFFFF' '\e]PF000000'

This changes what the TTY "thinks" black and white are (the first sets black, aka colour 0 to FFFFFF (hex for white), and the second sets white (colour F) to 000000 (hex for black). So when some command (like ls, for example), sends the escape code to set background to "white", it will actually be set to black, and so on.

See this answer for the full list of colours.


When does Ubuntu development begins on the next version after the current release?

13.10 was released on October 17th 2013 and Trusty was open for development the 21st. So it's just a matter of days.

Subscribe to ubuntu-devel or look at https://lists.ubuntu.com/archives/ubuntu-devel/ for the announcement.


Virtualbox guest Ubuntu OS doesn't recognize USB

Did you install the VirtualBox 5.0.12 Oracle VM VirtualBox Extension Pack ?
If not, you can download it here:
https://www.virtualbox.org/wiki/Downloads
This should give you support for USB 2.0 and USB 3.0 devices, VirtualBox RDP and PXE boot for Intel cards.
Gael.


Preliminaries

This following worked for me for Ubuntu 12.04. You should disable your computer's firewall as you test this so it won't interfere.

The /etc/default/qemu-kvm file should be as originally installed.

You will need to have bridge-utils qemu-kvm and libvirt-bin installed. Any users using virtual machines should be added to the libvirtd group.

There no longer seems to be any need to add CAP_NET_ADMIN capability.

Network Setup

The default network mode is the User mode, also called SLIRP. It uses a predefined virbr0 bridge which is NAT routed to the guest computer. The NAT routing uses the kernel's ip_forwarding feature and iptables. Bridge mode uses a virtual bridge in the guest to which the (unnumbered) Ethernet interface connects, and on which both the host and the guest have their network interfaces.

The following diagrams may make the differences clearer:

You can see how the default User network is defined with:

virsh net-dumpxml default

I can set up the bridged mode with the following approaches:

In /etc/network/interfaces (from the bridging part of the post you mention in your question):

auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

Reboot; and make sure that wireless networking isn't active. Check the default IP route with ip route. It must be using the br0 interface.

N.B. If your Ethernet isn't hooked up when this change is made you need to have your Ethernet cable plugged in and getting a carrier or the boot will hang for two minutes and you won't have network capability That's because the eth0 interface, by being in this file, must come up before the boot can proceed normally.

N.B. Generally you can't use a wireless network instead of eth0 because of their inability to use multiple MAC addresses (I infer that they need a second one for the bridge).

As an alternative you can disable the use of Ethernet and make sure that it does not have an IP address, and that there isn't a default route set up with ip route. Then:

 sudo ifconfig eth0 0.0.0.0 up
 sudo brctl addbr br0
 sudo brctl addif br0 eth0
 sudo ifconfig br0 up
 sudo dhclient br0 &

You could also supply a static IP address here, as well as defining the default route and DNS address. For this example dhclient does this.

Here's my route table:

$ip route list
default via 192.168.1.1 dev br0  metric 100
169.254.0.0/16 dev br0  scope link  metric 1000
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.45
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1

Using kvm

I can then boot a bridged kvm machine with:

 $ sudo kvm -name Quantal -m 1024 -hda foo.qcow2 --soundhw ac97 -device virtio-net,netdev=tunnel -netdev tap,id=tunnel,ifname=vnet0

The -netdev tap parameter makes sudo a requirement. As the VM is started qemu-kvm runs the following commands:

ifconfig vnet0 0.0.0.0 up
brctl addif brctl addif br0 vnet0

This is done by /etc/qemu-ifup

The VM's vnet0 interface is added to the br0 bridge because the default route above uses that bridge interface. If it weren't there the tap interface instead would be added to the virbr0 interface. Since that's not connected to the Internet, NAT would be used to connect the guest to the host and the Internet, in my experiments. You can direct the vnet0 to a particular bridge in /etc/default/qemu-kvm. Using virt-manager below you can explicitly direct which bridge to connect to.

Because of the above commands issued by qemu-kvm, and the -netdev tap,id=tunnel,ifname=vnet0 parameter, the vm virtual machine is connected to the vnet0 tunnel, and the tunnel is connected to the br0 bridge.

I can now directly ssh into this guest VM from another computer on my network.

My host ifconfig (note the vnet0 interface that appears on my network when the VM is running):

$ifconfig
br0       Link encap:Ethernet  HWaddr 00:1e:33:88:07:e5
          inet addr:192.168.1.45  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:33ff:fe88:7e5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6526 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2712940 (2.7 MB)  TX bytes:1071835 (1.0 MB)

eth0      Link encap:Ethernet  HWaddr 00:1e:33:88:07:e5
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7181 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7740 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2974585 (2.9 MB)  TX bytes:1096580 (1.0 MB)
          Interrupt:43 Base address:0x6000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:664 (664.0 B)  TX bytes:664 (664.0 B)

vnet0      Link encap:Ethernet  HWaddr ca:0c:73:c3:bc:45
          inet6 addr: fe80::c80c:73ff:fec3:bc45/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:226 errors:0 dropped:0 overruns:0 frame:0
          TX packets:429 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:26919 (26.9 KB)  TX bytes:58929 (58.9 KB)

virbr0    Link encap:Ethernet  HWaddr d6:18:22:db:ff:93
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

My bridge configuration while running the VM:

$brctl show
bridge name bridge id       STP enabled interfaces
br0             8000.001e338807e5       no              eth0
                                                        vnet0
virbr0          8000.000000000000       yes

Note that both the virtual machine's vnet0 interface and the eth0 interface are connected to the br0 bridge.

And the MAC's on the br0 interface:

$brctl showmacs br0
port no mac addr        is local?   ageing timer
  1 00:05:5d:cf:64:61   no         2.54
  1 00:19:d2:42:5d:3f   no        36.76
  1 00:19:df:da:af:7c   no         2.86
  1 00:1e:33:88:07:e5   yes        0.00
  1 00:60:0f:e4:17:d6   no         0.79
  2 52:54:00:12:34:56   no         0.80
  1 58:6d:8f:17:5b:c0   no         5.91
  1 c8:aa:21:be:8d:16   no       167.69
  2 ca:0c:73:c3:bc:45   yes        0.00

Note that the br0 interface connects my host computer to the same bridge being used by the guest.

You can check that you are bridged rather than NAT routed to your own network by using traceroute 8.8.8.8. If the first node is your network's router rather than the guest's ip address your network should be working correctly.

See this documentation.

virt-manager

Be sure that you have installed virt-manager and hal. The hal package is a suggested dependency for virt-manager and is used to determine the network configuration of your system when creating or editing guests.

While having the br0 bridge defined as above I created a virtual machine with virt-manager as follows:

I was able to go directly to the rest of my home network and to the Internet from this guest. I was also able to ssh into it from the other (non-host, non-guest) Ubuntu computer on my home network.

Here's the very long kvm command run by virt-manager (for comparison with EApubs or anyone else having trouble with this):

/usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name precise -uuid f057a729-eda6-4b85-84dc-f100c9ae3789 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/precise.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/media/natty/home/gruber/ubuntu-kvm/tmpW8gSGB.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,fd=18,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:0e:da:9b,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

Here's the network portion of the virtual machine description in /etc/libvirt/qemu/quantal.xml

    <interface type='bridge'>
      <mac address='52:54:00:b0:8e:aa'/>
      <source bridge='br0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

According to this link, for performance and reliability, it may be best to set the network device model to virtio, you can do this by in the virt-viewer by pressing the i button, going to the NIC setting, and setting the "Device model" to virtio. You could also add this to the XML above by adding the line:

      <model type='virtio'/>

In Summary

All this took on 12.04 was:

Installing virt-manager, bridge-utils, qemu-kvm, and related packages
Make sure each user wishing to use kvm are in the libvirtd group.
Defining /etc/network/interfaces as above (which match the quoted article)
Reboot, making sure Ethernet is plugged in and wireless (if any) is off.
Either run kvm against an image directly with, e.g. -device e1000,netdev=tunnel -netdev tap,id=tunnel,ifname=vnet0, or create a virtual machine with virt-manager, specifying network Bridge br0 under the Step 4->Advanced Options panel.

No further changes were needed to networking, capabilities, templates, or configurations.

To expose a service in your new guest to the Internet you should:

Prepare and configure any firewall service you will need.
Either assign a static address in your guest configuration or in your DHCP service.
If you are using a NAT router open a port for the service you are implementing directing it to the guest's IP address.

Remember to test and re-enable the firewall service for your host computer. It may need any entry to forward traffic to the guest.

See https://help.ubuntu.com/community/KVM/Installation, https://help.ubuntu.com/community/KVM/Networking, and https://help.ubuntu.com/12.04/serverguide/libvirt.html.


Yes, Windows 8.1 will not respect GRUB signature in the MBR and will put its own Boot entry. The Windows 8.1 setup might not delete the Ubuntu partitions on its own (unless you tell it to) but your Ubuntu installation will need to be rescued after installation of Windows 8.1.

I suggest you first backup all your Ubuntu installations data and then proceed.

Update:

See the link: Installing Windows 8.1 after Ubuntu 14.04

Also check the link inside above link as well.  That should help.


What is the best way to lock down Unity for guest accounts?

Part One

I think you can solve this doing:

1) Install Compiz Settings Manager from the software center  or by clicking here

2) Launch it from System -> Preferences

3) Uncheck Unity like in this picture:

4) Logout and log back in.

Part Two
Others questions

1) To disable Alt + F2:

gconftool-2 --type=string --set /apps/metacity/global_keybindings/panel_run_dialog ''

2) To disable the shortcut to open the terminal:

gconftool-2 --type=string --set /apps/metacity/global_keybindings/run_command_terminal ''

3)  To add shortcuts to the desktop:

Right click on Desktop > Create Launcher

Enjoy!


I was getting the same error on my X1 Carbon 7th Gen.
I did the following to enable the hibernation (Detailed instructions are here):

Turn off Secure Boot in BIOS.
Turn off "Modern Standby" in BIOS.
Create a swap file bigger than my RAM.
Update the grub.

After the above steps, I can use sudo systemctl hibernate command to hibernate and resume properly.


When you install two softwares having same name into two different directories, one in /usr directory is called.

If both are installed in places other than usr, the one which is located first is used(that's what I think)

In your case, you must change name of either package in bashrc, for ex change to NS2 which will point to one of the app you will compile.The other will be pointed by NS.This will solve your problem.


Fingerprint GUI doesn't detect fingerprint scanner

The driver is not yet available for Linux. There is a thread in a forum where people comment on this issue https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/1641290


Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) Drivers for Ubuntu 14.10

There are no drivers under Linux: There is something called "modules" in the Linux kernel and some people call them "drivers" because that's what Microsoft calls them...  ;-)

That being said, the modules are built into the kernel and are already installed. To activate opengl, do:

 sudo apt-get install mesa-utils

and then you can do a:

 glxinfo | more

And I'm sorry to say, but the SuperTuxCart System Requirements are incompatible with your computer...  On the other hand: Trophy should still work!


how to take the total working hours of the system in a day?

Note: This is only a partial answer, dealing only with the difference between uptime and suspended time.

You could determine the difference between uptime and suspended time utilizing some of the information available via /proc/timer_list.

Example 1:

$ uptime
 11:58:46 up  3:43,  2 users,  load average: 0.00, 0.01, 0.05
$ cat /proc/timer_list | grep "now at"
now at 12734872068331 nsecs

So uptime = (3 * 60 + 43) * 60 = 13,3800 seconds.
Active time = 12,735 seconds.
Therefore Suspended time = 13,300 - 12,735 = 645 seconds

Or, just look at the offset time for each CPU to get its suspended time directly:

$ cat /proc/timer_list | grep -A 1 "ktime_get_boottime"
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs
--
  .get_time:   ktime_get_boottime
  .offset:     668016000993 nsecs

Or 668 seconds for each CPU.
Why do the two methods differ by 23 seconds? Because uptime is only listed to the minute. So that answer is really 645 +59 -0 seconds (or, depending if uptime rounds, 645 +- 30 seconds.

So for what you seem to want run this during shutdown:

$ cat /proc/timer_list | grep "now at"
now at 25561396304263 nsecs

and divide that number by 3.6e12 (i.e. 7.1 hours active time)


How to Install and Configure SWAT In Ubuntu Server 12.04

In a terminal write:

sudo apt-get install samba smbfs samba-doc swat xinetd

Enable service SWAT in /etc/xinetd.conf and restart with the new configuration by the following:

sudo update-inetd --enable 'swat'

sudo dpkg-reconfigure xinetd

Create new configuration file /etc/xinetd.d/swat:

sudo cat > /etc/xinetd.d/swat <<-EOF

service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
EOF

Change the permissions smb.conf to group administrator (adm).

use chmod and chgrp tools to change the file access permissions and group permissions respectively:

sudo chmod g+w /etc/samba/smb.conf

sudo chgrp adm /etc/samba/smb.conf

Restart service xinetd with following command:

sudo service xinetd restart

open your web browser and access http://samba_server:[port]. default port: 901

If successful, you will be presented with a dialog box asking for username and password.

Use the username and a password from the admin group to log in, and you’ll have access to SWAT.


How to disable systemd-logind from handling lid close actions?Ubuntu 15.04

You want to look at /etc/systemd/logind.conf. Look for help in the man page of logind.conf

Specifically, you want to change HandleLidSwitch to ignore in the above mentionned file. But then when closing the lid, no action will be taken and the laptop will not go to sleep. This might not be what you want.


You will have to resize the sda1 partition, and in order to do that you must unmount the partition. But you will not be able to do that if you log in. Backup your data. Then restart and boot from a live CD/usb. Don't install but use the live option. Open Gparted and resize the sda1 partition in order to free the amount you wish. Then resize swap. Close the session, remove the live distribution and log in.

This tutorial might help understand better the process.

http://www.youtube.com/watch?v=8j3APIdOJu0

But first, back up your data.


By "etc." you're probably thinking of zsync. (There are also .metalink files but those are for automatic web download mirror selection.)

Why isn't ed2k supported as a primary distribution method for Ubuntu, alongside the other methods? This is probably because the eDonkey network:

is considerably less popular than bittorrent. The more people use a peer-to-peer distribution method, the more effective it tends to be in assuring high speed and reliability.
does not offer the unique, highly specialized advantages that motivate some developers and users to use jigdo to construct server ISO images (jigdo does not support the usual desktop ISOs).
does not offer the HTTP compatibility/integration of zsync or its ability to facilitate selective downloading of missing pieces of an ISO, even for desktop ISO images.

I believe the two most popular ways Ubuntu is downloaded are:

traditional download (HTTP and, to a lesser extent, FTP)
bittorrent

Downloading with a web browser (or ftp client) or with bittorrent are far more popular, among computer users at large, than any of the other distribution methods discussed above. It's no surprise that if only one standard peer-to-peer system is to be supported, it is bittorrent.

If you believe ed2k ought to be supported and are able and willing to present a compact, well-reasoned argument for this--to succeed, I think you'd most likely have to look up usage statistics to informally demonstrate that there users of EDonkey network clients who might be interested in downloading Ubuntu in that way--then you might consider filing a feature request against the ubuntu-website project on Launchpad.

On the other hand, if your goal is just to personally download Ubuntu with aMule, you might be able to do that, if you can find users on the EDonkey network (or other networks supported by the aMule client) who are sharing the ISO image you want. Especially if you download Ubuntu in this way, I highly recommend you verify its hash to ensure authenticity and integrity. If security is a concern, an MD5SUM is far better than nothing but a SHA-1 or SHA-2 hash is preferable. (All are provided for official Ubuntu ISOs.)


Remove your .Xauthority.
mv .Xauthority .Xauthority_2016-07-03
sudo service lightdm restart

You could also try just changing it's ownership:
sudo chown user:user .Xauthority
sudo service lightdm restart

...replacing user with your username.


What is the use of shortcut "Super key(windows key) + S"?

This shortcut shows all your workspaces. But you first have to enable then in the System Settings > Appearance > Behavior > Enable workspaces.
Then you will have 4 workspaces and Super+S will show them and allows you to switch from one to another.

Note that you will also have the shortcuts Ctrl+Alt+Arrow to switch from one to another


There may have been some error with your grub. It is possible that that grub did not correctly configure itself to link to windows boot manager. To rectify this problem

Open a terminal (Ctrl+Alt+T).
Run boot repair. This will automatically detect window boot manager and correct the links.

To install Boot Repair

Connect to the internet, Open Terminal and run the following command

sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list" \
sudo apt-get update; \
sudo apt-get install -y boot-repair && boot-repair

  Note: You can copy and run them all at once. If you want to run them individually just remove the trailing "; \".

And if you have to make any further changes to grub, then after you have logged into your system

Open a terminal (Ctrl+Alt+T).
Type in the terminal gksu gedit /etc/default/grub
To see the grub-menu at boot time, comment or remove the following line: GRUB_HIDDEN_TIMEOUT=0
To comment, add # at the beginning of this line, the result will be #GRUB_HIDDEN_TIMEOUT=0
Save the file.
In the terminal run sudo update-grub.

Other Sources: How to install the Boot-Repair


Is your router installed properly? Do you have an ethernet cable running to it from your modem? Also, you might need Ndiswrapper if you're using a wireless adapter. run

    sudo apt-get install ndisgtk

in the terminal, if you can. You can access the terminal by pressing ctrl+alt+t


CANON MP237 series driver for Ubuntu 20.01

Ok so far,
I tried different ubuntu flavours(Ie,Ubuntu,Xubuntu,Lubuntu).
Lubuntu auto-detects my usb printer and gives me a driver for it to work.
This happens probably because of different sources and resources each distro uses.
I am satisfied that my printer works now.
Im quite frustrated as to why a usb printer won't work in 1 distro and work in another.
Is there a opportunity to contribute to this issue?


Kernel Panic when booting ubuntu 12.04 LTS in virtualbox

Here are some things you could try:

Increase the Memory and Video Memory available to the VM
Download a fresh ISO using a torrent, that way you can guarantee it won't be corrupt. See http://www.ubuntu.com/download/alternative-downloads
Delete the VM and create a fresh one with the default options.
Try disabling the USB Controller, the Network Adapter, and the Audio to see if that helps.
Look at options like VT-X/AMD-V, Nested Paging, PAE/NX and IO APIC and the Chipset. Switching some of these may sometimes help.


Start a terminal by clicking the appropriate icon on the left side of the screen.

In the terminal, change the current directory to the location of your file:

 cd ~/openrave-0.9.0-src/python

(The ~ means "my home directory".  I hope the rest of the line is clear.)

You should see the prompt change to include the new location.  If you like you can check by typing

pwd

Now run the Python interpreter, giving it the name of the file to run:

python ikfast_generator_cpp.py


Ubuntu 16.04 -Nautilus Cannot Add Bookmarks

1- Using the nautilus file manager you can only bookmark the following directories:

Local directories
Directories on connected external drives
Networks drives via SMB

2- Open Nautilus and navigate to the file you want to bookmark

3- Press  cntrl + D

4- Check the lower left panel to see if the folder has been bookmarked

5- You can also reorganize the given bookmarks order by typing  cntrl + B

If this method does not work try:

1- Go to the following path: ~/.config/gtk-3.0 (relative) or /home/$USER/.config/gtk-3.0 (absolute path) and open the file bookmarks

2- Add there the path to any folder you want to have bookmarked (use the absolute path)

3- Save the changes and exit the document

4- Check Nautilus' bookmarks section


How do I turn off Gnome Shell Activities Animations?

In Gnome 3.8, just do this command to disable all animations:

gsettings set org.gnome.desktop.interface enable-animations false

To rollback:

gsettings set org.gnome.desktop.interface enable-animations true


MCE Remote Control - lirc Reponds - Now What?

I was able to get this working by doing two things that I found elsewhere on this site:

I added a file called ~/.lircrc with the contents shown below.
Then I went into VLC's advanced settings/interface and selected Infrared Remote Control Interface.  Under the "infrared" entry, I pointed to the ~/.lircrc

begin
 prog = vlc
 button = play
 config = key-play-pause
end
begin
 prog = vlc
 button = pause
 config = key-play-pause
end
begin
 prog = vlc
 button = stop
 config = key-stop
end
begin
 prog = vlc
 button = skip
 config = key-jump+medium
end
begin
 prog = vlc
 button = replay
 config = key-jump-short
end
begin
 prog = vlc
 button = forward
 config = key-next
end
begin
 prog = vlc
 button = rewind
 config = key-prev
end
begin
 prog = vlc
 button = up
 config = key-nav-up
end
begin
 prog = vlc
 button = down
 config = key-nav-down
end
begin
 prog = vlc
 button = left
 config = key-lav-left
end
begin
 prog = vlc
 button = right
 config = key-right
end
begin
 prog = vlc
 button = volup
 config = key-vol-up
 repeat = 1
end
begin
 prog = vlc
 button = voldown
 config = key-vol-down
 repeat = 1
end
begin
 prog = vlc
 button = mute
 config = key-vol-mute
end
begin
 prog = vlc
 button = pictures
 config = key-audiodelay-up
end
begin
 prog = vlc
 button = music
 config = key-audiodelay-down
end
begin
 prog = vlc
 button = more
 config = key-crop
end


GRUB problem: 12.04 not booting without USB drive

The possible cause for this could be the order disks are loaded or seen by GRUB.

For example, if your USB flash drive is 'seen' before your Hard disk, your computer and Ubuntu will work OK, but, when you remove the USB drive, GRUB then thinks that the HDD is the USB flash drive, and looks for the Hard Disk which is obviously not there.

To cure this, you will have to download and run GRUB Repair, which will fix GRUB so that it work properly


How I can copy a src code from my computer to the remote computer

When you try to copy /src it shows that the file does not exist because if a path starts with a slash, it is treated as absolute path. That means it is treated as relative to the file system root /.

Simply omit the / at the beginning of the local path and don't forget to specify a path on the target computer, like this (running from inside your home directory):

scp src gouda@csopt1:/home/gouda/src-copy

(Thanks to @ThomasWard) if your src is a directory, you need to enable scp's recursive mode by adding the -r flag:

scp -r src gouda@csopt1:/home/gouda/src-copy


The acpi -b error you have reported most probably indicate an ACPI type issue.

ACPI is an open-standard for device and power-management.

Some laptops (most googled that I found were Acer) incorrectly report its battery details to Ubuntu.  I'm not sure of your laptop type and model - nor its BIOS version.

Sometimes you need to compile your own kernel with a fixed DSDT table.

Sometimes you need to upgrade your BIOS to the very latest offered by your manufacturer.

If you decide on the latter action you should remember that updating the BIOS of a motherboard or laptop is always a risky operation, because if something goes wrong, the risk of irreparably damaging the hardware is very high.

You will need to follow the instructions for BIOS updates from your manufacturer.


How to allow moving the cursor while typing with xserver-xorg-input-libinput installed?

Yes, the DisableWhileTyping option in xserver-xorg-input-libinput is enabled by default, in order to disable it and be allowed to move the cursor while typing simply create a directory within /etc/X11 called xorg.conf.d, within that create a config file called 99-libinput-disable-dwt.conf, the make this its contents:

Section "InputClass"
   Identifier "Disable DWT"
   MatchDriver "libinput"
   Option "DisableWhileTyping" "off"
EndSection

Then restart X. You may also set it at runtime with:

xinput set-prop "device name" "property name" 0


How to install OpenStack/Eucalyptus on AWS using EC2 instances

Try Juju: Configuring for Amazon Web Services


I had the same problem once. I wanted to set up a IPP printer

I opened the printer configuration on the computer it worked on and copied the ipp address to the corresponding textbox on the other one.

But at first: Do you have CUPS installed? I have no idea why it shouldn't be, but check it

Then open a browser and go to http://localhost:631/admin. Go through the "Add printer" wizard...

As for your DVD's: Do you have ubuntu-restricted-extras installed?


Uninstall nvidia-prime:

sudo apt-get remove --purge nvidia-prime

Install bumblebee and the nvidia driver

sudo apt-get install bumblebee bumblebee-nvidia nvidia-352 nvidia-352-uvm nvidia-settings primus

Do sudo gedit /etc/modules and add

i915

bbswitch

Do sudo gedit /etc/modprobe.d/bumblebee.conf and make sure the line

blacklist nvidia-352
# is there, if not add it. This is most probably what caused you to boot into low-graphics mode

Do sudo gedit /etc/bumblebee/bumblebee.conf

line 22: >Driver=nvidia
line 55: >KernelDriver=nvidia-352
line 58: >LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
line 61: >XorgModulePath=/usr/lib/nvidia-352/xorg,/usr/lib/xorg/modules

reboot.

Sources

http://rajat-osgyan.blogspot.gr/2015/05/how-to-install-latest-nvidia-driver-in.html

It is approved by many (and me)to work, though the difference is that I don't use ppa:xorg-edgers (since it is unstable) I recommend you do that instead.

Others

Use primusrun %command% in steam launch options
and primusrun programname for everything else you want to run on nvidia. This should eliminate tearing for you and make vsync work again!

Hardware: Samsung NP550P5C S02
CPU: Intel i5-3210M
GPU: Nvidia GT 650M


It sounds like we either didn't receive the request or missed it somehow. Sorry about that! That is not the usual experience with Ubuntu One customer service. You can contact me directly at joshua dot hoover at canonical dot com and I'll be sure to help you out.


You have a few things that we can change to help your connection. First you have many networks in your area so their is a lot of channel congestion. Go into your router and try channel 2,4, or 9. We usually recommend 1,6 or 11 but to many other people are using those channel. Set encryption to just wpa2 AES personal not TKIP. Then save your router configuration.

Go into network manager top right corner of the screen and change IPV6 to ignore then reboot.

Edit:
Run

sudo iwlist scan

that will show all networks available find the Mac Address of the network you want to connect too then open network manager and put the Mac Address in the BSSID column, save the setting of network manager then reboot computer.


VirtualBox Virtual Media Manager "Checking accessibility" does not stop?

Well, I just made a new image for the (only one) virtual machine that I had, and once I did that and checked Virtual Media Manager, the "Checking accessibility" and the progress bar were gone, meaning, I guess, that the process completed successfully...


I have not tested this method but I think Déjà Dup tool (backup and restore tool) should work.

Déjà Dup has google drive option which in your case can central cloud repo.
Create a backup on one system and restore it on other.

Or if you can ssh your old system, rsync is a better way to replicate home folder.


How to get to the GRUB menu at boot-time?

Menu will appear if you press and hold Shift during loading Grub, if you boot using BIOS. When your system boots using UEFI, press Esc.

For permanent change you'll need to edit your /etc/default/grub file -- place a "#" symbol at the start of line GRUB_HIDDEN_TIMEOUT=0.

Save changes and run sudo update-grub to apply changes.

Documentation: https://help.ubuntu.com/community/Grub2


How to create a distro with ubuntu as base with preinstalled apps, themes and restricted extras?

Novo Builder

Novo Builder is a Debian GNU/Linux tool for creating your own up to date Ubuntu variants (only Ubuntu variant for the time being)

The previous de-facto tool to do this was Remastersys but it has sadly been discontinued.
A Novo Builder Tutorial should get you started up.


I'm sorry, but it doesn't work on Wine anymore - check the second answer here at this link.

  answered Nov 20, 2012 at 10:48 PM by tyjkenn:
  Unity3d stopped working
  in WINE from 3.4.2 and onward. Ironically, as Unity pushes for more
  support for Linux publishing, the Editor works less and less on Linux.
  With Unity 4, it can't even initialize the license system in WINE.


As Kulfy stated earlier in the comment section the desired package is available through the universe repository. In both bionic and cosmic it is part of the list of available packages if you enable the mentioned source.


unzip -O cp932 filename.zip

Option -O cp932 avoid this collapse, I think.


How do I replace the background-1.xml file under /usr/share/backgrounds/contest/?

The /usr/share/backgrounds/contest/background-1.xml file can be reinstalled by  sudo apt-get install --reinstall ubuntu-wallpapers


I recently installed the windows installer of ubuntu (12.04) (dual boot) and it is a little buggy

The windows installer (wubi) is reported to have some bugs. In fact the same for release 13.04 was removed due to existing bugs. Maybe its fixed in sometime...


Installing Windows 7 alongside an existing Ubuntu OS

If you first install windows and then try installing ubuntu, you get both sistems working just fine. But if you try to install windows after installing ubuntu, windows installer will format your hard drive so you will loose your ubuntu installation.

There is a way to do it, anyhow, but is not easy and you will need a different physical hard disk. If your computer does not support more than one hard disk (most laptops don't) you won't get it working.

I've done it a long time ago, so I can't remember every step, but it should be something like this:

First replace your hard disk with the one you want to install windows on.
Install Windows on that hard drive.
When you have done the new installation, put the old Ubuntu hard disk back where it was.
Connect the hard disk where you have just installed windows in the secondary hard disk  slot of your motherboard.

And that's it. If everything went ok, GRUB should recognize the new Windows installation, so you can choose it when you turn on your computer.

I hope that helps.


Workspace switcher only shows 1x4 grid and no animations

You're using Unity 2D, thats why the CompizConfig Settings Manager has no effects, Compiz simply isn't being used.

Are there any proprietary drivers available for your system? You can check it with Jockey (the Additional hardware drivers dialog). If yes, select the one saying recommended and hit the Install or Activate button.


Just found out how to fix it, at least until I reboot, if anyone knows how to make this permanent let me know, for now I run a script on startup.

xrandr --output HDMI-0 --set underscan on


Recover partition in / which is umounted

Try running fsck -n /data (after it is mounted), and note if there are any errors present. If you want to fix them, re-run it without the -n flag.

To format it to FAT32, you will have to copy your files from /data elsewhere, something like ~/data is a good idea (~ is the home directory, make sure there is enough space). Then fire up the Disk Utility (located under System->Administration menu), select the /data partition and format it as FAT32.

Alternatively, if you want to keep ext4, and make it user-writeable, you can run sudo chown USERNAME:users /data -R.


The hardware you mention - PCI\VEN_8086&DEV_3B20 - is part of an Intel chipset, namely the 4-port Serial ATA controller that is most likely on your motherboard. If you want to see the actual interface hardware on your system, run lspci in Terminal.

To make any effort to see if you are being probed/attacked, you would need to provide information from your system logs (/var/log/syslog, /var/log/auth.log) that you believe are suspicious activity for us to provide any insights.

Ubuntu, like most flavors of Linux, is very secure until you start enabling services (mail, Apache, SSH, etc.) and opening their ports to the wilds of the Interwebs.


In Ubuntu 16.04,

you can configure the access.conf  file according to your needs.

First, create a standard user (without Admin privileges).
Then edit the file /etc/security/access.conf and add a line that will disallow any local logins except the tty that you will define.

In the following example, the user with username localuser can log in (in local machine) only from tty1.

- : localuser : LOCAL EXCEPT tty1

Now we need to activate the access.conf file.

Here is the Trick on how to activate in Ubuntu.

For some reason, when I tested this on my Ubuntu 16.04 configuring the default /etc/pam.d/login file, (the pam_access.so line already exist there, and I just uncommented it) it didn't work.

But it did work when I added the line in /etc/pam.d/common-account

Edit the file and insert the following line below pam_deny.so.

account required                        pam_access.so

No restart of any service is needed. Just log out and test if the new user can log in from Lightdm, GDM or any Display Manager you have.


I've taken a somewhat different and perhaps incompatible approach to yours. Rather than save the btrfs send stream with -f, I always btrfs receive to reproduce the snapshot on the backup media (also a btrfs filesystem).

Additionally, all snapshots are indistinguishable from each other - there is no difference between monthlies, daylies, hourlies etc. - they are simply named according to an isodate of the form YYYY-MM-DDTHHMMSS+hhmm. Pruning snapshots on the original host and pruning snapshots on the backup media separately hasn't so far caused me issues with incrementals but it's still early days.

What started out as a github gist has turned into something bigger, so I've named it snazzer - see https://github.com/csirac2/snazzer

I wrote what I hoped was a generically useful pruning script, or rather, a script which emits the paths of snapshots which should be candidates for pruning. See https://github.com/csirac2/snazzer/blob/master/doc/snazzer-prune-candidates.md - see the synopsis with this example:

find /some/.snapshotz -maxdepth 1 -mindepth 1 -type d | \
    snazzer-prune-candidates | xargs btrfs subvolume delete

Sadly this won't work for you, because it relies on the snapshot names having iso dates. If you get a chance to have a look at snazzer, snazzer-receive or any other bits, please do give me feedback - I'm not quite ready to release to the world (I only just added the ability today to receive snapshots from a local filesystem rather than ssh), but any feedback at all would be most welcome.

P.S. If you're initially repulsed at the fact I've chosen POSIX shell and perl for this first version, it's because I'm on a zero-dependencies rampage - I'll be adding python implementations in coming months :D


Kubuntu erased whole disk while trying to install in EFI mode

I made a new stick with Ubuntu 14.04

In Bios Boot option I changed to legacy boot for HDD

Then from the live Ubuntu I started the install option
and chose Something Else to do manual partitioning

Installed GRUB to /dev/sda (I think the first time I did /dev/sda1 which may explain why it was not booting)

Primary partition Ext4, mount point / with all space less 4 GB (my RAM)
Logical partition as Swap with 4 GB

That's all. I will install Kubuntu desktop from here.


How to delete personal stuff from laptop permanently!

Don't just format or reinstall! Old data that hasn't been overwritten can still be recovered! Someone came to me with a computer once that had had many users. The current user had accidentally deleted ALL of her important files and wanted to know if I could get them back. You wouldn't believe the stuff I was able to dig up from multiple previous installs from the users before her!

First, use DBAN (download, burn it, boot from it) to digitally shred the entire contents of the drive (used and free space). This will take some time, but it will make file recovery virtually impossible on an HDD
After you have shredded the contents of the drive, then reinstall Ubuntu.

Bleachbit is available for Ubuntu in the (16.04) repos, but I would advise against this approach. If you forget to securely erase an existing file or "free space", you may leave something behind that could be discovered. The same goes for the shred command. You're better off overwriting the entire disk with random data using a tool like DBAN.


Cannot run executable after extracting tar.gz

Navigate to the /home/hp/MinGWStudio folder and type following:

sudo chmod +x MinGWStudio

and then start the program with:

./MinGWStudio

Make sure the spelling matches the file name.


Have you tried "stopwatch"?

Terminal install command if you dislike the GUI:

sudo apt-get install stopwatch

It is also easily installable from your Ubuntu software center.  You find it by typing stopwatch in the search window.  Or if you prefer, you can also find it in the synaptic package manager.

The following link tells you more about it, although it is entirely the same information you'd see if you opened the Ubuntu Software Manager.

https://apps.ubuntu.com/cat/applications/precise/stopwatch/


Can't find Alt-F5 in Settings/Keyboard Shortcuts

"Restore", which is found in the Windows section in Settings - Keyboard shortcuts, is not only assigned to Super+Down, but also to the "traditional" shortcut Alt+F5. You can disable the binding to Alt+F5 and retain the Super+Down binding with the following command in the terminal or in the run dialog (Alt+F2):
gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Alt>F5']"

That removes the Super+Down key assignment, but maintains the binding of Alt+F5 active for this function. Reset to the default (['<Super>Down', '<Alt>F5']) with the command
gsettings reset org.gnome.desktop.wm.keybindings unmaximize

You can edit this and many other "hidden" settings using dconf-editor, not installed by default.


Keyboard shortcut (accels) forgotten after reboot?

I had similar problem sometime ago... There the problem was that I had a profile started at startup, and I had to save changes to that profile - in order to make changes permanent.


Live booted Lubuntu on 512 MB of ram on Dell Inspiron 6000, Chromium always crashes when trying to go to a webpage

I believe the issue here is a low amount of RAM. Booting Live loads the file system into your memory, so that's going to be using up a bunch of RAM. Then trying to use Google Chrome on top of that will use another big chunk. "Either Chrome ran out of memory..." Most likely it did in fact run out of memory.


How to connect Ubuntu Server GUI from Ubuntu Desktop

I am not sure about LXDE as I have no experience with it. However, if the goal is simply to get a GUI then you can probably achieve it easier by using Gnome. You can also use VNC over SSH for remote desktop capabilities.

sudo apt-get install ubuntu-gnome-desktop

Refer to the following article if you need help with that.

install gnome-shell on ubuntu 16.04


How to install Bad Piggies on ubuntu 12.04?

You could try PlayOnLinux. It's available in the software center and has nice GUI menus to assist you in installing games like this. If your game is not listed, just choose the option to install a game that isn't listed.


Disable copying of 'nothing' when copying and pasting in Ubuntu

You could try using a Clipboard manager, several of them are listed here: http://www.webupd8.org/2010/08/best-linux-clipboard-manager.html

Not Sure if there is a way to disable that kind of behavior using one though.


The exact name of the package is gedit-plugins, not gedit-plugin (check here). To install this, you'd use the command

sudo apt-get install gedit-plugins


I can't find the Ubuntu installer for Windows so that I can dual boot

Download the Ubuntu iso File Extract it Find Wubi.exe in extracted folder double click it and follow on screen instructions


Remove all packages starting with nvidia-*. Then reboot. This will revert back to the nouveau driver, and you will be able to log into the desktop.

Here's how to do it:

On the black screen, press ctrl-alt-f2 to switch to the terminal.
Type sudo apt purge nvidia- and press tab twice. It will list all installed packages whose name start with nvidia-.
Remove each of those packages, using sudo apt purge package-name1 package-name2 package-name3 etc
Reboot, using the reboot command.

Also keep in mind that Nvidia Optimus doesn't work well on Ubuntu 18.04. You might have a better experience with the Nvidia drivers on Ubuntu 20.04.

One last advice: If the problem persists on Ubuntu 20.04, try Ubuntu Mate 20.04. It seems to have better support (it was the only distro that worked with my notebook's GPUs out-of-the-box).


When Shutting down or hibernating it just goes to the login screen

Used to have the same problem, run this on a terminal:

sudo poweroff

The problem get fixed by itself after several times i had to do that.

Also check if theres a .Xauthority file in your home folder owned by root.
Log in a text console (Alt+Ctrl+F1) at the login screen, and then run

sudo rm ~/.Xauthority

Hope it helps. (:


How to install Ubuntu 18.04 Server over an existing CentOS install

There's no reliable (or even sane) way from the CentOS installation to install Ubuntu overtop of itself.

You will need to do a clean installation.


Permission issues when saving in /usr/share/gtksourceview-3.0/styles

You don't need to edit those files, besides if you upgrade gtksourceview, your changes might get lost.

In order to make changes of your own, create the folder ~/.local/share/gtksourceview-3.0/styles:

mkdir  ~/.local/share/gtksourceview-3.0/styles

then copy the file you are interested in modifying:

cp /usr/share/gtksourceview-3.0/styles/cobalt.xml  ~/.local/share/gtksourceview-3.0/styles

(You can run these commands from the terminal. If you are using Gedit, the correct folder might be ~/.local/share/gedit/styles.)


No sound output with Ubuntu 13.10 After changing Drivers

This is a answer that has been tried and it solves my problem. Hopefully it will be an useful reference for other. The answer originate from here.

  Open a terminal window via cntrl/alt/F!

  log in with your normal userid and normal password - the password is
  not echoed to the screen

  type:

  cd /etc/default

  sudo cp grub grub-original < press enter > This creates a copy of the
  file before you modify it

  sudo gedit grub < press enter>

  This will start up the editor and open the grub file for editing. You
  want to look for a line like this:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

  and change it to look like this:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.audio=1"

  Then click on save, wait for it to save, then exit the editor to
  return back to the terminal window.

  Type:

  sudo update-grub < press enter >

  sudo shutdown -r now < press enter >

  These last 2 steps will regenerate a file used at boot time, then
  shutdown with a reboot (-r) so your PC will reboot.

  After reboot, click on the sound icon on the top bar, click on "Sound
  Settings", and hopefully you will see the option now for HDMI sound
  output. You'll have to click on it to make it the default, then just
  close out of it.

  Try something now to see if the sound is active via HDMI now.


Keyboard doesn't work in certain applications when using an external monitor

Did a lot of attempts, when I set resolution for external monitor at a lower value, it sometimes works.

But a random problem, probability on my machine is > 50%.


Check with ubuntuone support to see if you are exceeding the maximum file size limit, I believe the maximum file size for sync is 5GB for the basic account if this is the same for files that can be uploaded with your paid account, this could be the problem.

Whenever you use a browser to upload files to ubuntuone the file upload dialogue may not have any progress report, the upload button text just changes to uploading.

your file is large, depending on your bandwidth you may have to wait a long time before you can tell if the file has uploaded, try with a small file to see quickly if things are working.

You can try the chromium browser from the repositories, and notice the status bar, lower left corner, there is a percent upload report there.

The next thing to consider is that you can place the file in your ubuntuone folder or just place it in a folder you created and then sync (This assumes Ubuntu 10.04 or 10.1) that folder with ubuntuone. If it turns out that your file is too large for syncing you will have to find a way to reduce its size or do a split.


Why I'm getting this [UFW BLOCK] in my syslogs?

Well, it means that ufw blocked a connection from SRC to DST on TCP Port 8443.
Unless you wanted this connection to be successful it is not a bad thing.

Port 8443 is mainly used by webservices, for example it is used by VMware ESXi, or some (HTTPS) Application Servers.

You can check if your box is running anything on that port by issueing sudo netstat -tulpen | grep 8443


have you tried with sudo -i or simply sudo ./yourCommand (or something like that: sudo sh yourCommand ....)? Notice that, unless you've changed it, in Ubuntu you don't know root password.

Cheers and merry Christmas,

Silvia


In the BIOS, disable thunderbolt security in "system configuration" - "Usb". This should fix your issues. After doing that, my (almost identical) setup works fine.


I think you may need to set the proxy specifically for apt, see this ubuntu documentation link which the source for the following:

  Setting up apt-get to use a http-proxy

  These are three methods of using apt-get with a http-proxy.

  Temporary proxy session

  This is a temporary method that you can manually use each time you want to use apt-get through a http-proxy. This method is useful if
  you only want to temporarily use a http-proxy.

  Enter this line in the terminal prior to using apt-get (substitute your details for  your proxy address and proxy port):>

  export http_proxy=http://yourproxyaddress:proxyport

  If you normally
  use sudo to run apt-get you will need to login as root first for this
  to work unless you also add some explicit environment settings to
  /etc/sudoers, e.g.

  Defaults env_keep = "http_proxy https_proxy ftp_proxy"

  APT configuration file method

  This method uses the apt.conf file which is found in your /etc/apt/
  directory. This method is useful if you only want apt-get (and not
  other applications) to use a http-proxy permanently.

  On some installations there will be no apt-conf
  file set up. This procedure will either edit an existing apt-conf file
  or create a new apt-conf file.

  Add this line to your /etc/apt/apt.conf file (substitute your details for your proxy address and proxy port).

  Acquire::http::Proxy "http://yourproxyaddress:proxyport";

  Save the apt.conf file.

  BASH rc method

  This method adds a two lines to your .bashrc file in your $HOME
  directory. This method is useful if you would like apt-get and other
  applications for instance wget, to use a http-proxy.

  Add these lines to the bottom of your ~/.bashrc file (substitute your details for your proxy address and proxy port)

  http_proxy=http://yourproxyaddress:proxyport export http_proxy

  Save the file. Close your terminal window and then open another terminal
  window or source the ~/.bashrc file:

  source ~/.bashrc Test your proxy with sudo apt-get update and whatever
  networking tool you desire. You can use firestarter or conky to see
  active connections.

  If you make a mistake and go back to edit the file again, you can
  close the terminal and reopen it or you can source ~/.bashrc as shown
  above.

  source ~/.bashrc

  Then log out and back in and try

apt-get update


It was necessary to reboot to make the installed fonts visible to xlsfonts. Logout was not enough.


apt-upgrade kernel-image with custom kernel

Installing kernel updates will not influence the custom one.

However, the update will update grub. When I installed a mainline kernel, since it had a higher number it was made as the default kernel.

So if your kernel has a higher number you shouldn't worry.

If your kernel is lower than 3.5.0-19, the update will make the newly installed kernel default. You can set the kernel you want as default by changing the GRUB_DEFAULT=0 line to GRUB_DEFAULT="1>2" in /etc/default/grub. 1, means the second option in the first page of the Grub menu and the 2 means the third one on the second page (Counting starts from 0).


If it's an iso image you can mount this file the following way:

mount -t iso9660 /path/to/file.iso /mnt

To check if it's an iso image type:

file /path/to/file.iso
/path/to/file.iso: # ISO 9660 CD-ROM filesystem data 'Ubuntu 13.10 i386               ' (bootable)

This above is an example of an Ubuntu 13.10 Desktop iso file. As you can see it's an ISO 9660 CD-ROM filesystem.


Your best bet is to go with VirtualBox.
If you are new to virtualization it shouldn't be too difficult, but just in case:

Click "New" (Badge looking Icon)
Give it a name, select "Linux" and under that select "Ubuntu" or "Ubuntu (64-bit)" and click "Next"
Allocate the amount of memory you are willing to dedicate to the guests (make sure you leave enough for the host machine) and click "Next"
Select "create a new virtual hard drive now" and click "Next"
Select "VDI" and click "Next"
Select "Dynamically allocated" and click "Next"
Give it a name, select the maximum size, and click "Next"
You should now be out of the wizard. Select the machine you just created and click "Settings" (looks like a gear)
Under the Storage tab, click on "Controller: IDE" and click the little DVD, and select "Choose Disk"
Find your .iso of choice and click open.
Click "Okay" and you should be set.
Select the machine and click "Start"
Install Ubuntu like you normally would.
Rinse and repeat! (or you can right click on the machine and select "Clone")

Hope this helps!


Copy/paste not working in VirtualBox with XP as guest OS on Ubuntu 13.04

Same bug here, on Ubuntu 13.04 and XP.
What worked for me was the following:

Install Guest additions
Create a folder in your Ubuntu Home directory.
In VB main menu on the upper side go to "advices" (third item) and then click on Shared folders. Click on Add folder. Select path - other, select your created folder or any other you are working in. Mark automount and make permanent. Ok. Restart VB.

Now in the MS explorer you can access your folder easily and use it to pass information from one OS to the other.


Music player that remembers last song and playlist

I’d recommend exaile, or quodlibet with the queue-only plugin.

Both are in the standard Ubuntu repository (check the Software Center).


It sounds like it's multiple commands, or one that has —for some reason or other— been split over multiple lines. If you could show us, that would go some distance to let is know which it is in this case.
That's not to say that there aren't cases where a command really is too long, it's just really rare in practice, certainly when copying and pasting! If you are hitting this wall, look at xargs per Eduard's answer.
If it's one command with added newlines, remove the newlines.
Formatting on the internet isn't always perfect. Some websites (and authors) use poor tags for code and that can mean that some things get split onto multiple lines, breaking them. A simple example is running ls on two directories getting truncated:
ls a_really_long_directory_name
another_really_long_directory_name

The simple answer here is just removing that newline:
ls a_really_long_directory_name another_really_long_directory_name

But you can also escape the newline with a backslash as the last character on the line:
ls a_really_long_directory_name \
another_really_long_directory_name

If it's multiple commands that you want to run all together, not as you paste, bung them in a script and run that when you're ready.
If "the command" actually looks like:
ls a_really_long_directory_name
ls another_really_long_directory_name

That's two commands. When you paste them in each newline character is going to force that line to run. That's how most shells work in Ubuntu. If you want to bunch them together you can paste them into a file (let's call it myscript) and then tell bash to run those commands:
bash myscript

You don't have to mess around with crunchbangs and execute permissions, you just tell bash which file to open and run. You can do those things if you want to but they aren't necessary here.


I got apt error during executing commands

You're using apt and apt-get together, which does not work. You should either use sudo apt or sudo apt-get.

So the correct command is:

sudo apt install -y ruby-dev nodejs postgresql-client redis-server wkhtmltopdf memcached`

For more details about apt and apt-get check their manpages (man apt, man apt-get) and check this question too: what is the difference between apt and apt-get


Just try to open http://apt.ubuntu.com/p/bum in Chrome. Then the browser asks to choose opening with xdg-open or not. See the screenshot below:


boot.ini is a small file in the root of the system partition which is nearly always the C:\ drive.

boot.ini is not normally visible in Windows Explorer as it has the Read-only, System, and Hidden attributes set.

Source and more info about boot.ini.

Note:
Recommended Minimum System Requirements for Ubuntu Desktop:

700 MHz processor (about Intel Celeron or better)
512 MiB RAM (system memory)

but

A good "rule of thumb" is that machines that could run XP, Vista, Windows 7 or x86 OS X will almost always be a lot faster with Ubuntu even if they are lower-spec than described above.


Image processing on opencv c++ tool suggestion

OK, no one has any interested in this topic, so, I get into Internet past hole day and I've found some-thing that could be useful.

On windows we have Visual Studio where it is very easy to do image processing. But on any Linux system we don't have that. But here CodeBlocks comes in handy.

let's do this with some steps.

Step 1: Install OpenCV whatever version you like.

Step 2: Install CodeBlocks whatever version you like.

Step 3: Open CodeBlocks and create an OpenCV project

Step 4: After creating the project go to Project >> Build Options

Step 5: On this window,go to compiler settings >> Other options

Here you will see -s on the box. Type this under -s(like picture)

`pkg-config --cflags opencv`

Step 6: Now go to Linker settings >> Other Linker Options

On the blank box copy these line and click OK

`pkg-config --libs opencv`

Now Build and Run the project. It should run.

Reference:  OpenCV on Code::Blocks , ubuntu 14.04


You can click on the column header! First click with sort ascending, second will be descending and third click will reset.
Have a look at this Screenshot. Here I have clicked on Process Name.


Download from AWS glacier via CLI or simple linux tool

--vault-name parameter expects the name of the vault, not its ARN


Ok, looks like the right magic letters can be found in this tutorial: https://makeityourway.de/enabling-spf-sender-policy-framework-checking-on-postfix/

Specifically, the chunk that goes into master.cf should be:
policyd-spf  unix  -       n       n       -       0       spawn
    user=policyd-spf argv=/usr/bin/policyd-spf

And then the part for main.cf should be:
check_policy_service unix:private/policyd-spf

Another thing to get into is what to do with the defaults in /etc/postfix-policyd-spf-python/policyd-spf.conf: https://www.flomain.de/2015/08/how-to-postfix-with-spf/

I am finding a lot of conflicting information. What I want is:

No SPF for the domain? Could just be a scrub sysadmin like me. Accept the message.

SPF for the domain, but the test fails? OK, go ahead and reject.

Why is e-mail so hard?


The "modified timestamp" changed via a cut and paste

According to Wikipedia, FAT has a resolution of "2 seconds for last modified time", while "ext4 provides timestamps measured in nanoseconds". So it seems safe to say FAT is losing the extra second of precision, though I'm not sure why it only "takes effect" when moving the file to another filesystem. It might be a rounding error. This post by Raymond Chen might have some clues: Why does the timestamp of a file increase by up to 2 seconds when I copy it to a USB thumb drive?

BTW, another reason not to trust timestamps on FAT: they don't support time zones.


Hide gnome launch bar following a launcher click

You can set it to auto-hide

Go to the system settings, click on appearance, then there is a tab called behaviour, in there you can specify a few things about the launcher.


You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.


The crontab(5) man page says:

  Percent-signs (%) in the command, unless escaped with backslash (), will be changed
  into newline characters, [...]

so you should be able to just escape the % character by prefixing it with a backslash \:

00 15 * * *  user  date '+\%Y'

The \% sequence is processed by cron, so the shell will see the command date '+%Y' which is a correct invocation of date.


Best way to copy files from a hard disk with no OS

You could flip internal and external HDD. Remove your internal HDD out of your PC and use it as an external HDD and your other HDD as an internal HDD. If you current external HDD is empty you can safely boot it with Windows or Ubuntu and use your new OS to access your old data, for this you could buy an Adapter SATA to USB (around six euros) and use your current internal HDD as an external HDD. Or you could try to use the case of your external HDD.

There are probably some great youtube video's on how to replace a HDD if you've never done this before. Hope this works and is a safe solution, have a nice day!


I'm going to answer the question about the Bluetooth functionality that you put in the title. I don't understand how the remainder of your question about WiFi relates to that.

You can use BlueProximity to lock and unlock you desktop when a certain paired Bluetooth device is in range. Here is an article about BlueProximity on the Ubuntu forums from 2008.


Installed/removed Gnome, but now my boot/shutdown screens are showing the Gnome desktop image instead of the default loading stuff

I have your solution! It comes in two parts.

First, you most likely need to reset unity, because Gnome probably wrought havoc on your icons and overall unity theme. To do that, you'll need to run the following commands:

sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily
sudo apt-get update
sudo apt-get install unity-tweak-tool

Then run this command to reset unity:

unity-tweak-tool --reset-unity

Now about that pesky boot animation that Gnome has changed on you. Download Plymouth Manager using the following commands:

sudo apt-add-repository ppa:mefrio-g/plymouthmanager
sudo apt-get update
sudo apt-get install plymouth-manager

If for some reason you get an error message or it doesn't properly install, then download the install package from the hyperlink below and then call up the program from the unity lens.

Plymouth Manager Download

Now, simply select the first boot logo from the "themes" tab, and click "Apply." A small terminal window will pop up. Enter your root password, then type "11" to select "ubuntu-logo.plymouth."

Upon restarting your system, your default Ubuntu boot logo should be restored, and your Unity settings should be back to normal.

Oh! When you're done, you may find that your minimize/maximize buttons are still on the right side of the window. If this is the case, open Unity Tweak Tool, click "Window Controls" and toggle them back and forth until they are where they belong.

I hope you took this all as a learning experience, as I did. Have fun with Unity Tweak Tool!


how to change the default view of folders to detailed view

Open a Terminal with Ctrl + Alt + T and type:

gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' and hit ENTER.

There are two more options you can use 'icon-view' and 'compact-view'.


Here is the script i run to free space on root partition

function myclean {
    ## Show free space
    df -Th | grep -v fs
    # Will need English output for processing
    LANG=en_GB.UTF-8

    ## Clean apt cache
    apt-get update
    apt-get -f install
    apt-get -y autoremove
    apt-get clean

    ## Remove old versions of snap packages
    snap list --all | while read snapname ver rev trk pub notes; do
        if [[ $notes = *disabled* ]]; then
            snap remove "$snapname" --revision="$rev"
        fi
    done
    ## Set snap versions retain settings
    if [[ $(snap get system refresh.retain) -ne 2 ]]; then snap set system refresh.retain=2; fi
    rm -f /var/lib/snapd/cache/*

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

    ## Rotate and delete old logs
    /etc/cron.daily/logrotate
    find /var/log -type f -iname *.gz -delete
    sudo journalctl --rotate
    sudo journalctl --vacuum-time=1s

    ## Show free space
    df -Th | grep -v fs
}


How can I disable the keyboard backlight on an Alienware M14xR2?

To disable the keyboard completely:

Run xinput list.
Find the device ID of your keyboard here (it shouldn't be hard).
Run sudo xinput disable [device ID].


Firefox addon that extract's YouTube URLs

There are many Firefox add-ons that allow a user to download a YouTube video for off-line viewing at a later time.

But none seem to allow the user to actually obtain / extract the YouTube URL for the video. This could be  useful if one would like to download the video using a command-line tool such as 'wget' for example ( instead of Firefox's own download facility ).

In the above question I was looking for one such Firefox add-on.

I have found one. It is called 'Bulk YouTube Video Downloader' or BYTubeD in short.

This extracts YouTube video URLS and displays a time-stamp together with a validity period ( good for knowing how long you have to access the video via the provided URL ).

I've used it and it works a treat. The only thing is, on my shell ( ZSH ) the extracted URL, if supplied to 'wget' unquoted causes problems. So quote the URL.

Also, I found that you should explicitly provide 'wget' with a valid name under which to save the file ( use the -o flag followed by the filename you whish to give the downloaded video ).


Should I report Show Applications not scrolling as a bug?

Yes, this is something worth reporting. Thankfully, there's a handy built-in tool in Ubuntu that can help collect most of the necessary information.

ubuntu-bug gnome-shell in a terminal should collect a bit of information about the version of the gnome-shell package installed, dependencies, some hardware info, and Ubuntu version, etc. Then it should open up a web browser window where you can sign in to Launchpad (or create an account) and provide details about the bug. Feel free to also link to your post here if you feel some of the details/info you've provided here are critical or useful.
The Ubuntu Bug Window You Should See When Running ubuntu-bug


Is there a project management software for Ubuntu like Microsoft Project?

I can also suggest planner .  It's available in Ubuntu software-center.

TaskJuggler is really powerful but also a bit harder to use and is not available in Software Center.


In your battery powered device run crontab -e then add this line at the end:

* * * * * wget -q -O- http://www.example.com/full/URL/path.php > /dev/null

It will run every minute and the HTML code returned by your PHP script (if any) will be simply discarded.


KDE Menu / Kickoff

http://userbase.kde.org/Plasma/Kickoff:

  Kickoff is the default application launcher of the Plasma desktop...

The Kickoff is a plasma widget. The plasma theme can be altered.

Plasma Themes

Earlier: How to change color/transparency of all desktop panels?

The KDE plasma objects are using the svg images. You could edit the images with a svg capable picture editor (Inkscape et. al.). The Kickoff ( http://techbase.kde.org/Projects/Plasma/Theme#Current_Theme_Elements ) has the

  /kickoff.svgz :
  background for the kickoff launcher, needs a frame,
  with the prefix 'plain'

and

  /branding.svgz :

  a little KDE logo that can be customized by distributors as a branding
  element. Contains a single element called brilliant

The Kubuntu is using:

/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps/desktoptheme/default/widgets/branding.svgz

/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps/desktoptheme/oxygen/widgets/branding.svgz

You could edit those or the plasma widgets C++ source.


Ubuntu Xenial fails to mount software RAID-1 if fstab records for /dev/mdX are present, ignores mdadm.conf

My understanding is that the reason this is happening is because my software RAID devices were not originally created on this system. As a result initramfs image knows nothing about them and apparently attempts to assign some kind of default device names, /dev/md126 and /dev/md127.

To fix this problem all I had to do was run:

sudo update-initramfs -k all -u


About screen Lock you can change it in Settings->Privacy->Screen Lock.
Also if you want Password on every Login, then you need to change it in Settings->Details->User->Automatic Login set to off.


Why doesn't 'w' or 'who' command show all logged in users?

Desktop users won't normally show up in who because LightDM doesn't record your desktop login in utmp (see https://bugs.launchpad.net/lightdm/+bug/871070).

I wonder if, while you're testing this, you're leaving your terminal windows open:

You open an xterm and run who from your own account.  You're the only user with a terminal, so it only lists you.  The other accounts might be running sessions in the background, but they don't get listed because LightDM didn't record their login.
You leave the xterm open on your own account, switch to the kid's account, open an xterm there, and run who.  Your account is still listed because it's connected to the xterm that you left running.
You leave that xterm open on your kid's account, switch to your wife's account, open another xterm and run who.  Now all three accounts have terminals open, so who lists all of them.


Subwoofer not working in HP Pavilion m6-1002tx

Check alsamixer (alsamixer in terminal), to see that the subwoofer is not muted which sometimes may be happen.

Otherwise editing /etc/modprobe.d/alsa-base.conf usually works

In terminal run gksu gedit /etc/modprobe.d/alsa-base.conf

Add the following at the end then save:

options snd-hda-intel model=auto

or

options snd-hda-intel model=ref

Then reboot.
Check alsamixer and sound settings again after each attempt.

/usr/share/doc/alsa-base/driver/HD-Audio-Models.txt.gz has a list of models to put instead of auto/ref, I don't see your model in there, but maybe one of the others using the same codec will work.

Run cat /proc/asound/card0/codec* | grep Codec to discover your codec (mine is 92hd91), so not supported there either, but sometimes one of the others does the job.


Try Gparted Partition Editor from System-->Administration to format your external HDD.Please note that,to format a partition it must be unmounted.


this is  a bug on linux kernel, you can see at this document

http://debian.2.n7.nabble.com/Bug-702965-procps-ps-dies-with-SIGSEGV-on-kernels-gt-3-2-29-and-lots-of-supplementary-groups-td2890061.html
http://forums.grsecurity.net/viewtopic.php?f=3&t=3298
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/639798

but this is old bug on Ubuntu, i don't know it is still exist on newer kernel..


Downloading data file from website to RStudio in ubuntu 17.10

Replace the smart quotes

cpd <- read.csv(url(“https://pub.data.gov.bc.ca/datasets/176284/BC_Liquor_Store_Product_Price_list.csv?accessType=DOWNLOAD”))

with regular ASCII double quotes:

cpd <- read.csv(url("https://pub.data.gov.bc.ca/datasets/176284/BC_Liquor_Store_Product_Price_list.csv?accessType=DOWNLOAD"))


VirtualBox - Error with ubuntu 14.04 LTS

VT-X is hardware support for virtualization.  You have to enable the VT-X instruction set in your BIOS first before virtualization (running VMs) will work.

If you have a laptop, there may be some issues.  I have an Acer laptop that has VT-X permanently disabled with no option to turn it on, and I know the CPU supports it.

Alternatively, if you are unable to switch your VT-x on, open Virtualbox, click the VM you have, click settings.  On the left side, in the menu where there are categories listed "General, System, Display, Storage, etc." Click on System.  You should see three tabs there, Motherboard, Processor and Acceleration.

Click on the Acceleration tab and uncheck the checkbox that says "Enable VT-x/AMD-V".


Check hardware requirements https://wiki.ubuntu.com/DemystifyingUnityGraphicsHardwareRequirements


how to install openoffice 4.1 on ubuntu 12.04 64bit

With that article, you probably have a few issues - first you are downloading the 32bit version, so the 64bit version may suit you better. Secondly you may want to download a different locale if you don't use en_GB (the UK's one), you can get various versions from here: http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/

This site already has a question on How to install OpenOffice - this uses PPA's so may work better (though with a second look it does seem to be outdated). It also should have a version more suitable for the specific distribution of Ubuntu you are using (with dependencies).

Note that Libreoffice, which is included in Ubuntu and other linux systems by default, is more up-to-date and is under a open license: Why is LibreOffice default instead of OpenOffice.org


Converting images to PPM P3 (using convert command)

convert foo.ppm -compress none bar.ppm found here http://www.imagemagick.org/Usage/formats/#pbmplus


Ubuntu 16.04 periodically resets /lib/systemd/system/memcached.service file

I don't found any solution here and as best workaround decided to make /lib/systemd/system/memcached.service none writable for anyone !


Did you do first add the PPA? from: https://wiki.ubuntu.com/Touch/Install

sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot

For install missing deps

sudo apt-get install -f


I think it installs correctly. but nvidia-settings is not recognizing the change.

You can verify this by running this command : dpkg -l nvidia-current to see the exact version number installed


Open a terminal and enter

sudo dpkg --configure -a

This should finish up the previous installation and solve the problem.


Why there is no "Sharing Options" on cinnamon on Ubuntu 12.04?

The "Sharing Options" option in the context menu in Cinnamon is provided by nautilus-share.

So, first check if you have installed this package with next command in terminal:

whereis nautilus-share

If you don't have it installed, you can install it with:

sudo apt-get install nautilus-share

If your default file browser is not Nautilus and is Nemo, use next commands instead:

whereis nemo-share                  #to check if is installed
sudo apt-get install nemo-share     #to install


Nexus 7 installer gets stuck on 'Erasing Boot Partition" help what to do next?

Please don't reboot/power cycle your device just yet, as I'm not sure what else the installer did to your Nexus 7 filesystem.

If it didn't erase or otherwise change your bootloader or anything else, then it should be safe to reboot or power cycle the device. You'll just be stuck in a boot-loop at the Google logo. It's fine, just read on.

Obviously you won't be able to boot into the OS, but you'll be able to boot into the bootloader and do some repairs from there.

Afterwards you can even flash (or re-flash) a kernel to restore the boot partition (from either Fastboot or your installed custom recovery) and boot normally, assuming you have a functional Android ROM flashed into the device, that works in conjunction with the kernel.


After upgrade to linux kernel 5.8.0-34 generic, OS no longer opens full screen

Run in the virtual machine
sudo apt purge virtualbox-guest-dkms

Then install Guest Additions form the Device menu of the virtual machine.
It will install the 6.1.16 additions that are compatible with the 5.8 kernel.
The Guest Additions in Ubuntu repos were not updated. It is not a problem of VirtualBox developers, but by Ubuntu maintainers.


Netbeans all menu fonts are bold after upgrade to 12.04

This is a bug:

https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/669159
How do I subscribe to a bug?

In the first link, there is a comment that will point you to another bug. There you can find the following solution:

sudo apt-get remove fonts-unfonts-core


How do I select OK on the following screen?

Press the Tab key and OK will illuminate, then press Enter.


Ubuntu not showing in the grub boot loader after installation

(I expect this question will be moved to Ask Ubuntu, but I'll throw this answer on while we wait).

First, boot to a live cd to make sure your installed Ubuntu partition is still there (I fully expect it to be).

Second, (assuming the 1st step showed you that you still have an Ubuntu install) look at your partition table and your grub.conf file - make sure it's the grub.conf file of your installed system, not the live cd :)  You may just have to manually write in the line for your Ubuntu partition.  It's odd that the generated grub.conf file would be broken.


What is the best way to rename files and directories recurively on bash?

Variables used in a function are global. In other words, if a variable is assigned a value within a function, its value can be accessed by the caller. If you want to declare a variable that is used only within the function and should not accessible by its caller, this variable should be declared local. For example, you can put the following extra line in the beginning of your function _recursivename:

local currentpath

This is especially important for recursive functions that need to have their private copies of their local variables and which need to keep unique values in each invocation as in your case.


Assuming you're trying to install using the command dpkg --install, please use gdebi instead.

First, you need to download gdebi using this command:

sudo apt-get install gdebi

Next, you'll need to use gdebi to install the .deb file:

sudo gdebi whateverfilehere.deb

Works for me like a charm. Good luck!

PS: Alternative solution
You can also try to install the missing packages manually like:

sudo apt-get install vlc-nox
sudo apt-get install libc6
sudo apt-get install libfreetype6
...


There are multiple risks when upgrading your system. Something could go wrong, which is why you perform a backup.

Back up all your data. Then perform the upgrade. The packages you have installed will usually be upgraded and your system will work fine. Your data will still be there. Your system will be different, usually it is an improvement.

There are some third-party repositories that may be disabled automatically by the upgrade process. (This only happens if you have specifically added those third-party repositories.) If you have installed packages from those repositories, then you will temporarily lose those specific packages when you upgrade. The upgrade process will inform you of that fact. You can make a note of those packages and re-enable them after the upgrade. (If the packages don't support the latest version of Ubuntu, then you'll have to live without those specific packages.)

I always upgrade my system. It is a fairly smooth process. It might take me a day or two to get some things ironed out after an upgrade. I do make backups, but I almost never lose data in the upgrade process.

Your mileage may vary.


How to ask multiple computers by ssh through the same command

You repeat the question:

ssh -p 2222 computer2@192.x.x.100 'who -b' | awk '{print $(NF-1)" "$NF}' >> textfile.txt
ssh -p 2222 computer2@192.x.x.101 'who -b' | awk '{print $(NF-1)" "$NF}' >> textfile.txt

The ">>" will append it to "textfile.txt".

If you put the IP addresses in a text file you can loop through it (pseudo example):

#!/bin/bash
filename='ipaddresses.txt'
while read p; do
    ssh -p 2222 $p 'who -b' | awk '{print $(NF-1)" "$NF}' >> textfile.txt
done < $filename


You will probably need a real version of Microsoft Windows; Windows XP or newer.

You could run this copy of Windows either by arranging a dual-boot of your hardware, or possibly on a virtualiser such as VirtualBox running on top of Linux.

Then install and run WebPlus as normal.

Depending on your needs and level of skill, there are HTML editors which run directly on Linux or on JAVA.

and yes you can not use wine as its not supported by wine..

answer taken from https://community.serif.com/forum/webplus/4960/how-can-i-install-webplus-x6-on-linux-ubuntu-os


There isn't one as far as I know. You have a few choices though:

Pipe the output through less or more

command | less

Hit the up until you find the command you ran and run it again (optionally using less or more again).
Run the previous command through less using history expansion.

!! | less

Use a terminal that supports searching through the scroll back. The image below is showing my preferred terminal, terminator (installable with sudo apt-get terminator) but Ubuntu's default terminal also supports this. Just hit Ctrl Shift F to show the search bar. If you then search for either the command's name or your username (which appears in your prompt) you will be taken directly back to the last command:


A simple, one-knob volume control for KDE (kubuntu)?

KMix backends

  What's the easiest way in KDE (Ubuntu 13.10) to have a simple,
  one-knob volume control for the default playback device? ... "Built-in
  Audio Analog Stereo.")

The KMix supports multiple backends: The Kmix blog: http://kmix5.wordpress.com/ and an older topic: http://kmix5.wordpress.com/2011/12/30/winter-of-69-welcome-kmix-v4/

To get the "Built-in Audio Analog Stereo." option:

Right click the KMix and pick the 'Quit'

Add the PULSEAUDIO to the kmixrc as the backend. This can be done with the command:

kwriteconfig -file kmixrc -group Global -key Backends -type string PULSEAUDIO

Start the KMix again - Alt + F2 and the command kmix.

The KMix should now start with the pulseaudio backend:

Click the wrench icon

and only pick the 'Playback Devices'.

After this the KMix should offer only the 'Built-in Audio Analog Stereo' option. At here it does.

Other mixers

Veromix: http://kde-look.org/content/show.php?content=116676 .
The Veromix is also in the Ubuntu repositories (plasma-widget-veromix).

ALSA Volume Control plasmoid : http://kde-apps.org/content/show.php/?content=138990

About kwriteconfig

kwriteconfig --help
Usage: kwriteconfig [Qt-options] [KDE-options] [options] value

Write KConfig entries - for use in shell scripts

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --file <file>             Use <file> instead of global config
  --group <group>           Group to look in. Use repeatedly for nested groups. [KDE]
  --key <key>               Key to look for
  --type <type>             Type of variable. Use "bool" for a boolean, otherwise it is treated as a string

Arguments:
  value                     The value to write. Mandatory, on a shell use '' for empty


Get wifi working Lenovo Thinkpad t440 on Ubuntu 12.04

Lenovo Thinkpad has Intel wireless device 7260. This is not compatible with kernel version earlier than 3.18.*.
To solve the problem please update the kernel to the most updated kernel version supported by your ubuntu version. you can find the instruction to update the kernel here.

Then update the 'additional Driver' from 'system settings'. Thats all.


How To Switch From Ubuntu 16.04 To Lubuntu

Yes, Ubuntu 16.04 + Lubuntu-desktop is different than a freshly installed Lubuntu, and I agree the latter gives you a better experience than the former. (Lubuntu 18.04 is even better.)

Before installing Lubuntu to completely replace Ubuntu. I would make two, count them, two backups of everything in /home and verify they match what's on your PC.

Then, I would generate a list of everything installed on your PC with
apt-cache pkgnames > apps.txt and save apps.txt to a flashdrive. Once that completes, do a stock standard install of 16.04, run apt-cache pkgnames > remove.txt and manually edit apps.txt to take out of apps.txt which also appears in remove.txt. So, apps.txt - remove.txt = a list of everything added by you.

Now that you have the list of what to install, re-reboot that PC from a Lubuntu LiveUSB flashdrive, start installing, and when Ubiquity (the standard installer app) asks, what to do with partitioning, tell it to erase everything.

When Lubuntu's install completes and you have rebooted into the new system, run

sudo apt-get update && sudo apt-get install < new-apps.txt

and Lubuntu will go and get all the programs which were not part of Lubuntu, and their dependencies.