How to change the soundcard output on-the-fly?

You can do it in sound control panel, but in ubuntu 12.04 in 12.10 this function seems broken.


How to use vsftpd to set up an FTP server and how to access that server from another computer?

You need a few things to get an ftp server to work...

Configuration - I suggest you read the man pages for the software you are going to use:

man vsftpd
man vsftpd.conf

Firewall - outside computers must be allowed to talk to your server: you must allow incoming connections on port 21. Have a look at "firestarter" for a nice program to manage that.
If you want to access the computer from the outside world you may need to tell your router to pass incoming connection on port 21 on to your server as well. Look into the configuration of the router, usually a local address like 192.168.1.254 (on my router).
vsftp is started for you when you install it, but you can use the program "bum" to manage services, or stop/start it from the command line like so:

sudo service vsftpd stop
sudo service vsftpd start

After this you should be able to connect to your server from an ftp client or use a web browser: ftp://yourserver/

Hope that helps :)


You need to clear up the filesystem cache using sync. sync flushes the filesystem buffers and you should then get the updated filsystem information using df -h.

Refer to the manual page of sync for more.


Go to Menu  -  System Settings  -  Appearance - Themes and choose the theme.

If you want to call login screen press Ctlr+ Alt + Del.


For the half installed package error, --reinstall worked for me:

sudo apt-get install --reinstall packagename


I notice that you have both dell-wmi and dell-laptop loaded as modules. Typically, these are helper modules that translate key presses, in your case, the wireless button, into action, turning on and off the wireless.

I wonder if both are intended to be loaded to control the wireless button. Let's try to remove first one and then the other and see if the wireless button now responds to presses. If we succeed, we'll blacklist the errant module.

From a terminal:

sudo modprobe -r dell-laptop

Now try the wireless button. Does it now enable the wireless?

rfkill list all

If not, reload it and unload the other:

sudo modprobe dell-laptop
sudo modprobe -r dell-wmi

Now try the wireless button. Does it now enable the wireless?

rfkill list all

When we determine which, if either, helps, I'll amend my answer to give guidance on how to blacklist the other.


mounting cifs windows share from HP scanner prompts for password when it shouldn't?

I managed to adapt this answer from linuxquestions.org to get a working solution: http://www.linuxquestions.org/questions/ubuntu-63/how-to-connect-to-windows-share-without-password-4175580487/

The answer from linuxquestions.org suggests to add the following two options to the mount:

nounix,sec=ntlm

Using these two options plus the option setting an empty password, I can mount the memory card as follows:

mount -t cifs -o nounix,sec=ntlm,password="" //192.168.1.101/memory_card /scanner

Or, specifying the mount in the fstab file:

//192.168.1.101/memory_card /scanner cifs nounix,sec=ntlm,rw,password="" 2


Cannot resize windows at lower right corner?

I have exactly the same issue, also running Ubuntu 12.04 in a VMware virtual machine. It's the same using VMware Fusion and VMware ESXi. It is also extremely difficult to grab any window edge, for example, to stretch the window horizontally or vertically.

The only solution I have found so far is to use the shortcut of holding down ALT and using the third button (usually middle) on the mouse if you have one. This will allow the window to be resized while the pointer is within that window's boundary, bypassing the need to grab the lower-right corner.


Can't read partition table of 3TB USB disk

The problem is this, from your post:

sd 6:0:0:0: [sdc] 732566646 4096-byte logical blocks: (3.00 TB/2.72 TiB)

When connecting your disk via USB, the enclosure is translating its 512-byte logical blocks into 4096-byte logical blocks. This completely messes up the partition table created when you used the disk internally (or via the eSATA port). Translations like this make the disk usable with the older MBR partitioning system, and so are fairly common on external disks. In this case, though, it's effectively a bug. IMHO, any translation applied by the enclosure to a USB interface but not to an eSATA interface is a bug, since it locks the disk into use by the interface that was used to partition the disk. (Note that switching from GPT to MBR won't help, since both partition table types define partitions by sector values, which are inconstant between the interface types.) Note that this is a problem with the enclosure's firmware, not in Linux.

You might want to check the documentation (including anything you can find from the enclosure's manufacturer online) for information on disabling this feature. If you're lucky, there'll be a DIP switch or some way to reprogram the USB interface from your computer to disable this translation.

If that fails, your best option, given your needs, is to exchange the enclosure for one that doesn't do this translation, or that applies it to all interfaces. (I'm not sure if it's technically possible to apply such a translation to an eSATA port, though.) You could do this by returning the enclosure to the store or possibly by swapping the disk with another enclosure. If you're lucky, the enclosure will only apply this rule to disks that are over 2TiB in size, so swapping disks with a smaller external disk might fix the problem. Beware, though: Some USB enclosures can't handle over-2TiB disks at all, so you could just make matters worse.

If you can't replace the enclosure, then you'll just have to deal with it -- decide whether you want to use USB or eSATA, tape over the one you don't want to use, and live with it. If you use USB, you'll need to wipe the partition table and repartition the disk.


Why do I see these messages while updating Ubuntu 14.04

Execute the following commands

export LC_ALL="en_US.UTF-8"
sudo dpkg-reconfigure locales

Then reboot. It must solve your problem.


Wifi not working on Ubuntu 16.04 after just being installed alongside Windows 10

It might be because of missing drivers, if you have a LAN cable:

connect your device to the internet
open Software & Updates
go to the 5th Tab named Additional Drivers and wait until you see the right driver for your device

apply the changes

[Edit]

It seems to be the same problem, download the driver on this way.

How do I get a Realtek RTL8723BE wireless card to work?

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms

Reboot your device

I hope it could solve your problem. Let me know if it was helpful.

David


Cannot find windows 8 option after installing ubuntu

You have erased Win8 partition according to your image :(


I'm stuck on the desktop. No taskbar and no shortcut key for restart

The problem you describe seems similar to the issue answered in this article.
Try the following:
Press Ctrl+Alt+F1 to open a text console and login using your username and password and run:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y

It will reconfigure all unpacked but unconfigured packages and then upgrade all installed packages where available.


apt-get update error for a local repository

I think that that proxy is the fail, edit the file /etc/apt/apt.conf

Acquire::http::proxy "http://user:pass@proxyIP:8080/"

Hope it works :)

In my case, the node was brought up using Juju which had put MAAS server as the proxy. Once I deleted that entry, the apt-get update started working.


Should I restart after updating my system?

You do not have to restart your computer every time you update. Certain updates (such as those that affect your operating system kernel) will require rebooting to take effect. When such an update occurs, your session icon in the upper-right will glow red.


Displayport MST, secondary monitor stuck in sleep-mode

Leu's solution works like a charm, but for those who do not have a "xorg.conf" in above location (/etc/X11/xorg.conf) - there is simple option to generate one based on your current configuration.

Simply open

"NVIDIA X Server Settings" -> "X Server Display Configuration" -> "Save to X Configuration File"

(bottom right button).


Installing Xerox Phaser 3300 from CD - Do not have permissions

If its a configuration file then you'd go with

sudo nano < path to file name . >

if you  want it in a GUI way then

gksudo gedit

remember that you have to execute them from terminal .


from http://en.wikipedia.org/wiki/Shell_script:

  A shell script is a computer program designed to be run by the [Unix] shell, a command line interpreter. The various dialects of shell scripts are considered to be scripting languages.

In other words: a bash script is a shell script, but a shell script not necessarily a bash script.

Unlike an application, a script is usually executed as a series of commands, from A to Z (although it can run in a loop). A script hardly takes any user input once it has started and is usually written to fulfill a single job.

While modern applications usually are written in classes to fulfill a wider range of tasks, depending on what the user decides, a script mostly executes its commands from top to bottom, to exit once the job is done.

There are numerous scripting languages, of which bash is just one. To mention some which are used on Linux: python, bash, perl, awk, sed


Deactivate crypt and enable automatic login

Try following this guide.  It should be just what you need.


I can't ping by hostname - Ubuntu server

Based on the comment you left, I would hazard a guess that your /etc/hosts file on the host is incomplete. You might want to have it set like this:
127.0.0.1       localhost
192.168.3.3     ubuntu-vm.spkso.local ubuntu-vm

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

If you know the IPv6 address for your VM, do throw it in at the end of the file. Once this file is set, you should be able to ping ubuntu-vm and ping ubuntu-vm-spkso.local as the names will resolve to the correct local address.


Configuring Samba to allow Use of CUPS printer

If your not too attached to using Samba you can share a printer using IPP:

The preferred way to connect a Windows client to a Linux print server is using IPP.     It's a standard printer protocol based on HTTP, allowing you all ways to profit from port forwarding, tunneling etc. The configuration is very easy and this way is less error-prone than using Samba. IPP is natively supported by Windows since Windows 2000.
To configure the server side you need to enable browsing in /etc/cups/cupsd.conf, by adding the line "BrowesAllow all":

 Browsing On
 BrowseOrder allow,deny
 BrowseAllow @LOCAL
 BrowseAllow all

On the Windows computer, go to the printer control panel and choose to 'Add a New Printer'. Next, choose to give a URL. For the URL, type in the location of the printer: http://host_ip_address:631/printers/printer_name (where host_ip_address is the GNU/Linux server's IP address and printer_name is the name of the printer being connected to).

After this, install the native printer drivers for your printer on the Windows computer. If the CUPS server is set up to use its own printer drivers, then you can just select a generic postscript printer for the Windows client(e.g. 'HP Color LaserJet 8500 PS' or 'Xerox DocuTech 135 PS2'). Then test the print setup by printing a test page.
If you must use Samba to share, you could adding a write list to smb.conf:

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = no
printable = yes
create mode=0700
write list=@adm root <username>

All of the above info I found at this wiki, which has more info then what I included here.  Hope that helps!


Upgrading to Win 8 on a computer with windows 7 and Ubuntu 12.04

If you UPGRADE your windows, it will not be problem. What I experienced about windows 7 to 8 installation is this:

You can upgrade Windows 7 32-bit to Windows 8 32-bit only. -32-bit to 64-bit is not possible in upgrade process.
-You have to buy a saperate DVD to go from 32-bit to 64-bit.

This UPGRADE should not modify MBR and you will be able to keep Ubuntu as it is.


apt authentication failure on self-signed package

I think I figured it out myself. apt does not check authentication on individual packages but only on the Release files.


Partitions unlocked from Unity launcher show up again after starting gparted

This only happens when the partitions are not already mounted when you start gparted.

The workaround is to:

1) Mount all partitions on the drive or device

2) Start gparted and allow it to scan the device

3) Then unmount the partitions.

This prevents the icons from appearing in the Launcher and keeps the partitions in the blacklist, although in most cases its more trouble than simply removing the icons after they appear.

I browsed the code for both Gparted and Unity and here's a very simplified summary of what is happening.

1) Gparted scans the system and builds a map object listing partitions.

2) Unity detects this and sees the unmounted volumes in the map as newly added volumes, even though they are already listed in /proc/partitions and other places.

3) When Unity detects a new volume, it creates an icon for it and adds it to the Launcher. Part of the process of adding the icon is to remove the volume from the blacklist.

A closely related issue is that Unity removes removable devices from the blacklist on eject. If you blacklist a removable device from the Launcher, it will always come back.

I can understand how this behavior may be needed for phone and tablet interfaces, but I see the bug as a need for a little more analysis of these features. The problem for many power-users on the desktop is that logical partitions are seen by Unity as removable devices. If you plug in a usb hdd with, say, two primary partitions a dozen logical ones, you can blacklist the primary partitions but the logical partitions will always show up on the launcher with a usb device icon.


There's Miraclecast,

https://github.com/albfan/miraclecast

https://launchpad.net/~thopiekar/+archive/ubuntu/miraclecast

And instructions / a discussion from a few years back... I do not know if this has become more user friendly since, or not.
https://github.com/albfan/miraclecast/issues/4

I looked into this a while back when I got a "smart tv", and ended up making the the lazy decision to buy a chromecast device instead.


Getting Touchpad work on Akoya E7226
I've installed such a notebook and had the same problem. The reason is that this notebook uses a 8042 chip for touchpad communication, which is not supported by the kernel per default.
You have to modify your Grub file

Make a backup of your grub file:
 sudo cp /etc/default/grub /etc/default/grub.backup

Edit your grub file:
 sudo nano /etc/default/grub

Now add the following paramters into the line starting with GRUB_CMDLINE_LINUX_DEFAULT:
  i8042.reset i8042.nomux=1 i8042.nopnp i8042.noloop"

In my case this line looks like
 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash logo.nologo i8042.reset i8042.nomux=1 i8042.nopnp i8042.noloop"

Save the changes.

Now you have to update your grub via
  sudo update-grub

Reboot your machine


Safe to install a downloaded eclipse installation file?

No, it is not safe. Running untrusted scripts from the internet is never safe. A trusted ppa (for example, from the creators of eclipse) is the preferred way.

If you run a script from the internet, make sure it comes from a trusted place. A script from askubuntu might be good, if it is for your specific OS version and if the answer is upvoted.


How to open php files on Eclipse PDT Indigo

I ran into the same issue.

I solved it by using Ubuntu Tweak: http://ubuntu-tweak.com/;

The current version has a tab "Admins", and at the bottom there is "File Type Manager"; select category "all" and browse to php script: there you can add to link to /usr/bin/eclipse.


If it is related to a network issue then follow this checklist.

Ensure that IPV6 (or IPV4) is NOT disabled. If one is disabled then the bootup process continues after a network timeout after exactly 2 minutes. Disabling is typically done in the config file /etc/sysctl.conf (searchfor: disable_ipv). If you find such lines then remove those lines and reboot.
Assuming that you use DHCP to get an IP Address then this is the default netplan configuration file. Perhaps this config file was changed recently?

  nano /etc/netplan/01-netcfg.yaml

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

This is the default content of another network config file

  nano /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# Generated by debian-installer.
# The loopback interface
auto lo
iface lo inet loopback

You might see that is wrong in the NetworkManager by inspecting its configuration. Open a Terminal window on the Ubuntu Desktop and run these commands:

sudo nmcli networking
sudo nmcli general status
sudo nmcli device status
sudo nmcli device wifi list
sudo nmcli connection show
sudo ip address show

Hopefully this helps.


Replacing Pulseaudio with Pipewire in Ubuntu 20.04

I was facing the same issue with Oneplus Wireless Z Bass edition. My headset microphone was not detected by PulseAudio and the problem is that my headphones  don't have HSP profile, only HFP profile. After trying for 2 days, I came to the solution of replacing PulseAudio with Pipewire sound server, which supports HSP, HFP and A2DP by itself. So there will be no need to install any other utility like ofono, phonesim. Also, to be noted that my problem wasn't resolved even after following all the steps to configure ofono in PulseAudio. So I came up with the steps to replace PulseAudio with PipeWire.
Here is the detailed article I have written to resolve this problem, the steps of which I'm also adding here. You can follow it and most probably be able to solve your problem.
Bluetooth headset microphone not detected
Open your terminal and follow these steps:

We will use a PPA for adding Pipewire to Ubuntu 20.04, which is maintained regularly:
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream

To update the PPA packages in your system do:
sudo apt update

Install the package:
sudo apt install pipewire

There is also a dependency needed to be installed with Pipewire, otherwise you will face the issue of “Bluetooth headset won’t connect after installing pipewire”. Install the dependency by:
sudo apt install libspa-0.2-bluetooth

Now, to install the client libraries:
sudo apt install pipewire-audio-client-libraries

Reload the daemon:
systemctl --user daemon-reload

Disable PulseAudio:
systemctl --user --now disable pulseaudio.service pulseaudio.socket

If you are on Ubuntu 20.04, you also need to “mask” the PulseAudio by:
systemctl --user mask pulseaudio

I am not sure but, if possible, you can try to run this on other versions too.
9.     After a new update of Pipewire, you also need to enable pipewire-media-session-service:
   systemctl --user --now enable pipewire-media-session.service

You can ensure that Pipewire is now running through:
pactl info

This command will give the following output, in Server Name you can see:
PulseAudio (on PipeWire 0.3.28)

Things should be working by now and you can see your microphone.

If it doesn’t show up, then try restarting Pipewire by this command:
systemctl --user restart pipewire

Edit: You need to uninstall ofono and phonesim from your system if you have them installed.

sudo apt remove ofono
sudo apt remove ofono-phonesim

If it’s still not showing your microphone, you can try rebooting once and remove and pair your Bluetooth device again to check if it works now.
I hope I have helped you solve your problem.
If you want to rollback all the changes we did, you can do it by using:
systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket


Help fixing virtual consoles (tty1-6) under VirtualBox

Upgrade VirtualBox to 4.1.6. using the procedure described in How do I install VirtualBox 4.1?

Download VirtualBox 4.1.6 Oracle VM VirtualBox Extension Pack and install it (just double click on the file).

Start your virtual machine and open a terminal.

Install your VirtualBox Guest Additions.
sudo /etc/init.d/vboxadd setup

Restart your guest.
sudo apt-get purge virtualbox-guest-utils

The guest kernel is updated using the command:
sudo /etc/init.d/vboxadd setup

Restart your guest.

This package provides the X11 guest utilities for VirtualBox. These utilities are meant to be run inside the virtual machine.
sudo apt-get install virtualbox-guest-utils
sudo /etc/init.d/vboxadd setup

Restart your guest.

Install VirtualBox Guest Additions
sudo /etc/init.d/vboxadd setup

Restart...

P.S : I recommend do it step by step and test with CTRL + F1. If something gord wrong just purge the package install in that step do it again. That is how I fixed in my own machine...


Ubuntu cannot create partitions when I try to install

Is it possible that your hard disk is fried? When you "Try Ubuntu" can you use disk-utility or testdisk to check if your hard disk is ok?


How to switch input language with Caps Lock in Ubuntu 13.10?

In Ubuntu 13.04 this was simple: go to System Setting → Keyboard Layout → Options → Key(s) to change layout and tick Caps Lock:

But in Ubuntu 13.10, Keyboard Layout, now called Text Entry, has undergone many changes, and for the moment, until a  a correct fix for this bug will be released, is a little bit more complicated to switch input language with Caps Lock.

After I added the following PPA to my list of sources using the following command:

sudo add-apt-repository ppa:attente/1218322

and after I upgraded my system using:

sudo apt-get update
sudo apt-get upgrade

I was able to change the default Super+Space keyboard shortcut to Caps Lock:

Many thanks to William Hua (attente) for his Input source switching PPA. As he said, he will keep the PPA up-to-date until a correct fix for this bug is released.


get rid of broadcom bcm4313 and use only a usb wifi adaptor ralink

You also need to blacklist brcmsmac,

echo 'blacklist brcmsmac' | sudo tee -a /etc/modprobe.d/blacklist.conf


xdotool could not move mouse inside firefox

ok I found the solution and it works for both Ubuntu and Centos :

#!/bin/bash
/usr/bin/firefox &
sleep 2
xdotool mousemove 1335 165
sleep 2
xdotool click 1


Is there anywhere where I can get Ubuntu installed for me?

You should try any local computer repair shop, usually the people that work in those places know how to install Ubuntu. If they don't they will probably give directions to a place where someone can do that for you.


How to Recover Data from Harddisk after formating using dd command

You could try testdisk
$sudo aptitude install testdisk
and launch by
$testdisk
I suppose that you could recover some data in the HDD, but for sure not all of it, because the data of the ISO you wrote on it by accident overwrote the original data.


Canon CanoScan LiDE 25 still fails to scan under Xenial

This answer is intended to guide OP for troubleshooting on own, since other relevant information provided by OP were found scattered on Ask Ubuntu, Ubuntu forums and Launchpad (For some reasons, OP didn't bother to note these in the question).

Troubleshooting

Most users failed to note the most important information: the changing point.

In this case, the changing point is the answer to the only question: "What are the changes made to the computer or scanner, since last time the scanner was working well on Ubuntu?"

If one fails to provide any answer for above, then one has to follow the tedious way to troubleshoot by considering each and every possible factors that may have caused the scanner to fail.

From most obvious to most tricky factors to consider:

Is the scanner broken? (Test on other operating system i.e. Windows or other Linux distro, with different architecture i.e. 32-bit, 64-bit)
Does the USB cable work? (Test with other USB cable, try with shorter cable i.e. 1m or less)
Is the scanner connected directly? (Using USB hub could prevent the scanner from being detected)
Is the scanner connected to a functional USB port? (Some options in BIOS/EFI menu could accidentally disable USB port from functioning normally; This is hardware dependant)
Is the host machine having sufficient voltage supply to USB ports? (Check capacity of power supply unit, nominal voltage in BIOS/EFI, etc.)
Has the host machine installed/upgraded any hardware parts? (Some hardware i.e. USB controller interface has higher priority for front/back ports)
Has the host machine installed/upgraded any hardware drivers? (Possible conflicts between multiple printer/scanner drivers)
...and other factors that I might have missed.

Misleading sense

To this date, Canon CanoScan LiDE 25 still works well. When the scanner is plugged into the USB port, it is detected automatically and user will just have to run GUI scanning program to use it. No further configuration is needed. It works out of box.

For me, the scanner has been working well since Ubuntu 8.04 32-bit (XSane), followed by 10.04, 12.04, 14.04 32-bit and 16.04 32/64-bit (Simple Scan). I have used interchangeably between five different computers. The oldest machine I am running now is 8 years old.

My point is, just because the scanner had stopped working, that doesn't necessarily mean the problem lies in the scanner or host system.

The reason could be something else, albeit trivial, which had caused the scanner to fail. If one had to edit configuration file and run some commands to make an 11-year old scanner to work on Linux, in year 2016... Something is not right. That doesn't make any sense to me.

I can only suggest to recall the changing point, or start troubleshooting one by one by asking above questions to yourself. I hope you will find the solution, since existing answers are not useful to you.


Can't see the dock bar when starting desktop environment with startx

When you do startx its configurations are different from normal login.

you need to enable the extension ubuntu-dock

one of the way is to run gnome-shell-extension-prefs and enable the extension.

Other way is to use the below command. If you have more extensions.. you can add them too

gsettings set org.gnome.shell enabled-extensions "['ubuntu-dock@ubuntu.com']"

Example:

pratap@PRATAP:~$ gsettings set org.gnome.shell enabled-extensions "['ubuntu-dock@ubuntu.com']"
pratap@PRATAP:~$

For a Qucik migration of some settings from normal login to startx

First get the gsettings values for the below keys when you are on normal login.

Example:

pratap@PRATAP:~$ gsettings get org.gnome.desktop.interface cursor-theme
'DMZ-White'
pratap@PRATAP:~$ gsettings get org.gnome.desktop.interface icon-theme
'ubuntu-mono-dark'
pratap@PRATAP:~$ gsettings get org.gnome.desktop.interface gtk-theme
'Ambiance'
pratap@PRATAP:~$ gsettings list-recursively | grep enabled-extensions
org.gnome.shell enabled-extensions ['ubuntu-dock@ubuntu.com', 'user-theme@gnome-shell-extensions.gcampax.github.com']
pratap@PRATAP:~$ gsettings list-recursively | grep favorite-apps
org.gnome.shell favorite-apps ['ubiquity.desktop', 'firefox.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop', 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'org.gnome.Software.desktop', 'yelp.desktop', 'ubuntu-amazon-default.desktop']
pratap@PRATAP:~$

Then Create a script with below content

#!/bin/bash

gsettings set org.gnome.desktop.interface cursor-theme 'DMZ-White'
gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark'
gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
gsettings set org.gnome.shell enabled-extensions "['ubuntu-dock@ubuntu.com', 'user-theme@gnome-shell-extensions.gcampax.github.com']"
gsettings set org.gnome.shell favorite-apps "['ubiquity.desktop', 'firefox.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop', 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'org.gnome.Software.desktop', 'yelp.desktop', 'ubuntu-amazon-default.desktop']"
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Once you entered startx run the script.

For example if you have saved the script named startx in /home/<user>/ then run the command /bin/bash /home/<user>/startx

with more workouts you can make changes to your script for your exact requirement.


Autorun windows share mount script after login as root

I don't know if this is a solution for your problem, but you could try to use the setuid flag. To do so, make your script owned by root (chown root:root <filename>) and then chmod +s <filename> it.

Of course you have to be careful which programs you make setuid root, since if the program has a security flaw so its users can make it run arbitrary code, it might be misused to gain full root access.

Regarding the automatic start after login, I think that indeed "Startup Applications" is the place to put it.


How to copy from one buffer to another in gstreamer?

Rather than writing to the data the GstBuffer is managing, you're overwriting the GstBuffer object itself with your final memcpy call.  Instead, you want to write to GST_BUFFER_DATA (buffer).

With that said if you just want a new buffer with the same data, it would seem easier to just use the gst_buffer_copy() function.


KDE overwrites your locale. change your region to a supported region.


Ubuntu 14.04 Depends: python (< 2.8) but 3.5.0-1 is installed

I have downloaded *.deb package for 2.7.5-5ubuntu3 and installed using dpkg instead of apt-get

$ sudo dpkg --install python_2.7.5-5ubuntu3_amd64.deb


Can't run desktop python applications when switching out the default Python version

If you want to install it manually then install it somewhere in /usr/local/ or /opt and use either the full path to the python binary in your programs or set $PATH so that is has the directory containing your python binary before the other directories and use the usual #!/usr/bin/env python


"Could not load Shockwave flash" problem on Xubuntu 13.04 with Chrome 28.0.1500.71

I had the same problem with 12.04. I tried everything to get it to work. I couldn't get it to work with Flash 11.2.

Just delete or rename the .so file  in /usr/lib/flashplugin-installer/

If you are still having problems download Flash 10.3, extract the libflashplayer.so to /usr/lib/mozilla/plugins


How to remove windows from MacBook pro and install ubuntu?

During Ubuntu's installer you can select option "Erase disk and install Ubuntu" to get rid of Windows. This will remove everything on your laptop so take backups if you need!


MLDonkey 3.1.0 does not work in ubuntu 12.04

I've found the same problem, and I have fixed it checking on the .log file in .MLDonkey directory. I had a problem with this file: "stats_mod.ini.tmp". I deleted that file, then MLNet works again :)


Ubuntu 19.10: Retries password after re-installing bcmwl-kernel-source

There seem to be bugs related to Wifi modul and the recent kernel. Here is one of the treads related to it: https://bugs.launchpad.net/ubuntu/+source/backport-iwlwifi-dkms/+bug/1849891.

Solution

In my case, simply removing the iwlwifi backport. sudo apt-get remove backport-iwlwifi-dkms and rebooting resolved the issue. Able to connect to Wifi again.


On Ubuntu 16.04 and 16.10 it’s recommended to install qutebrowser via tox instead in order to be able to use the new QtWebEngine backend.
Assuming, you are using one of above version.

$ git clone https://github.com/qutebrowser/qutebrowser.git
$ cd qutebrowser
$ tox -e mkvenv-pypi
$ vim /usr/local/bin/qutebrowser

#!/bin/bash
~/path/to/qutebrowser/.venv/bin/python3 -m qutebrowser "$@"

/path/to/qutebrowser/ is your current directory. pwd will show you that.

Now you can open qutebrowser like any other applications.


What are the orange circles appearing at the corners of my windows in Unity?

Those orange circles are the Unity Grab Handles, a Compiz plugin designed to make resizing and moving easier with touchscreens or touchpads. By default, it is triggered by a three-finger tap over the window.

In the accepted answer of this question:

How do I use Unity drag handles?

there is a very detailed guide to configure the handles. Since you just want to get rid of them, you only need to uncheck the plugin itself.


Slow boot times since 18.04 installation on Dell D630

I may have found a work-around; my boot time got reduced from over 4 minutes back to about 50 seconds (Wayland session) by doing:

sudo vi /etc/default/grub
I changed the GRUB_CMDLINE_LINUX_DEFAULT boot parameter to:  GRUB_CMDLINE_LINUX_DEFAULT="video=SVIDEO-1:d"
Save and exit vi
sudo update-grub
sudo reboot

br, Koen.


mkdir in bash script: mkdir: cannot create directory ‘’

You have a space in your variable assignment that makes it an empty variable, change it to:

BACKUP_DIR=/opt/odoo12/database_backup_test


Updating Ubuntu and not removing software!

It will not remove your software it will only upgrade your base system and some of the packages that are available in the repo. if any that do get removed will be old system packages and dependencies that most likely replaced by alternatives. you can back up your system. in conclusion, Ubuntu will not delete any packages and software and settings don't worry. back up is the only way


E: The package libreoffice6.2-debian-menus needs to be reinstalled, but I can't find an archive for it

There are 3 steps to take to get to the current version  of LibreOffice 6 which I have completed in 18.04 (and 16.04) without problems.

Add the LibreOffice PPA. Open a terminal and type:

sudo add-apt-repository ppa:libreoffice/ppa

Update your system by running this command in terminal:

sudo apt update

Finally run this command in terminal to upgrade or install LibreOffice

sudo apt install libreoffice

Then as any updates are available, they will be automatically offered according to your preferences in Software Updater.


I have a similar printer: check the firmware as I have to send mine back to Canon after calling their support line (they have a free support line).

It's a hardware issue not related to Ubuntu.  Sorry to be the harbinger of bad news!


Piskvor wrote:

  Did you try booting into one of the previous kernels? Hold left Shift
  at boot, a list of available kernels should pop up (this is the boot
  manager, Grub2). Select one of the previous kernels (I believe the
  default in 12.04 is 3.2.0), the system should boot normally. If it
  does, uninstall the 3.3.4 packages and run sudo update-grub

I was able to go into previous version just fine. And now magically 'kernel 3.3.4' is working like a charm.


Since the order can change, this will take a little bit of scripting. Here's a Perl version:

#!/usr/bin/perl -nl

my $time = $1 if /\[(.+?)\]/;
my $city = $1 if /city=(.*?)(&|$)/;
my $lang = $1 if /language=(.*?)(&|$)/;
my $x = $1 if /\bx=(.*?)(&|$)/;
my $y = $1 if /\by=(.*?)(&|$)/;
my $z = $1 if /\bz=(.*?)(&|$)/;
print join ",", ($time, $city, $lang, $x, $y, $z)

Save that as foo.pl, make it executable (chmod +x foo.pl) and run it like this:

./foo.pl file.txt

You could also squeeze that into a "one-liner":

perl -lne '$t=$1if/\[(.+?)\]/;$c=$1if/city=(.*?)(&|$)/;$l=$1if/language=(.*?)(&|$)/;$x=$1if/\bx=(.*?)(&|$)/;$y=$1if/\by=(.*?)(&|$)/;$z=$1if/\bz=(.*?)(&|$)/;print join",",($t,$c,$l,$x,$y,$z)' file

Explanation

The -n means "read the input file line by line and apply the script to each line. The -l adds a newline to each print call and strips newlines from each input line.

In each case, we use a regular expression to find the target string and assign it to a variable if a match was found. The first regex, \[(.+?)\] matches anything between a [ and the first ]. The parentheses around the .+ are capturing groups and let us refer to what was captured as $1. So, $time will be whatever was inside the [ ].

The other regexes follow the same idea. The \b means a "non-word character" and ensures that y= will not match city etc. The (&|$) means either a & or the end of the line ($) and is needed for capturing patterns at the very end of the line.

Finally, we join these with commas and print them.


How to display the Computer icon in the desktop?

The dconf approach will not work as there is not computer entry but you can create a file in your Desktop. At a terminal type:

gedit $HOME/Desktop/Computer.desktop&

Copy and paste the text below in the file:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=nautilus computer:///
Name=Computer
Icon=computer

Make the file executable by typing in the terminal:

chmod +x $HOME/Desktop/Computer.desktop

Reference:  http://ubuntuforums.org/showthread.php?t=1852458


Acer C720 trackpad not working Ubuntu 14.10

Determine whether a touchpad has been detected
To check if a touchpad has been detected open a terminal and check the input device list given by this command:

xinput list

If one of the lines mentions a touchpad or glidepoint (perhaps also "Synaptics" or "ALPS"), your touchpad has been detected.

If one of the lines mentions an "ADB mouse", then your touchpad is old. Use the trackpad command line tool to configure it. Here's an example to switch on tapping and dragging:

sudo trackpad show
sudo trackpad tap
sudo trackpad drag

Followthis for more details


Only get the H+W geometry of my screen without the later +x+y

You can use perl to get only the resolution:

xwininfo -root | perl -lne 's/.*geometry (\w+).*/$1/ or next; print'
1360x768

Or even shorter with just GNU grep:

xwininfo -root | grep -oP '(?<=geometry )\w+'
1360x768

Explanation: The lookbehind (?<=geometry ) asserts that at the current position in the string, what precedes is the characters "geometry ". If the assertion succeeds, the engine matches the resolution pattern.

A lookbehind does not "consume" any characters on the string. This means that after the closing parenthesis, the regex engine is left standing on the very same spot in the string from which it started looking: it hasn't moved. From that position, then engine can start matching characters again.

Source: http://www.rexegg.com/regex-disambiguation.html#lookbehind


Check out man ping for more info:

 -l preload
              If preload is specified, ping sends that many packets not  wait‐
              ing for reply.  Only the super-user may select preload more than
              3.


Integrating gnome-terminal with notify-osd

Dustin Kirkland, Core Developer of the Ubuntu Server posted something very interesting on his blog: an alias you can add to your .bashrc file to get notified when a job you run in a terminal is done.

Setting everything up

To use it, simply edit your ~/.bashrc file:

  gedit ~/.bashrc

and paste this at the end of the file:

alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"'

Now source your .bashrc:

  source ~/.bashrc

Try it out

To get notified when a job you run in a terminal is done, add "; alert" at the end of a command (without the quotes).

As a test command you can run:

  sleep 20; alert

Example: If you want to get notified when you compile some program, run the "make" command like this:

  make; alert

Many thanks to Dustin Kirkland for the alias!


Is there a way to create a bootable image of a running Ubuntu system that excludes certain paths?

Your distribution already does almost all of what you want and describe, the system files are backed up somewhere on their servers. You can get those files anytime, what you need is to backup your configuration changes, the listing of packages you normally install perhaps in a script for quick re-install. The script could even copy the tiny little text files that are configs for your apps back into place or use the idea below to do it in the cloud. Then it is matter of your media which you already backup, putting it into place. That seems to cover what you need done, unless you think your cloud provider can get your binaries back onto your computer faster than your distro's servers can. In short backing up, already duplicated many times in the cloud, by your distribution makes little to no sense to me. As does that cloud term they are servers just like any other machine out there, doing what they have been from the beginning.
https://wiki.archlinux.org/index.php/etckeeper


How can I get Ubuntu 14.04 back to pure Unity?

I suggest that you freshly reinstall Ubuntu 14.04.  But first backup for you files and other things.


Cannot use CUDA, NVIDIA gpu is not detected, ubuntu 14.04

No answer about login issue. But to install cuda 7.5 you could use :

https://github.com/NVIDIA/DIGITS/blob/digits-3.0/docs/UbuntuInstall.md#repository-access


License concerns for Ubuntu/Linux and a prospective business

Yes, you can charge for it.  The only restriction is that you must provide your customers with the source code to the software.  Provided that you don't modify it, that is already handled by Canonical and the Ubuntu archive mirrors.

See also:

http://www.ubuntu.com/project/about-ubuntu/our-philosophy


'source' builtin in bash not recognized in cron environment

Is it the case? If so, where is the system wide alias  for . defined?

It is the case, but there's no such thing as a system-wide alias.

. and source are the same builtin in Bash, but that's defined directly at the source code's level (https://askubuntu.com/a/25491/380067).

The reason behind having two names for the same builtin most likely resides in the fact that Bash aims to be POSIX-compliant to some extent; so source for the sake of providing a mnemonic name and . for the sake of complying with POSIX's standards.

The real reason why source doesn't work in cron is that by default cron jobs in the crontab are excuted in sh, which is a symlink to /bin/dash (a shell that aims to be POSIX-compliant as well) which simply doesn't implement source. However it does implement ..

From man dash:

. file
       The commands in the specified file are read and executed by the
       shell.


LibreOffice - Calibri font availible when opening a doc but not in dropdown

You have to install it:

Install Microsoft's classic TrueType fonts: sudo apt install ttf-mscorefonts-installer
Install Microsoft's newer ClearType fonts:

which includes: Constantia, Corbel, Calibri, Cambria, Candara, and Consolas
make fonts directory: mkdir ~/.fonts

  wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash

Then close and open LibreOffice, if open while you installed these fonts.

Source:

http://www.pcworld.com/article/2863497/how-to-install-microsoft-fonts-in-linux-office-suites.html


Ubuntu 11.04 and higher no longer use Gnome2, they use Unity which is a fork of Gnome3. Unity cannot be made to look the same as Gnome2. There are few options for Gnome2 fans, and this whole pissed a lot of people off, but that's old news. You can stick with 10.04 thus enjoying the environment you like but being unable to run newer software, you can suck it up and use Unity (perhaps it will grow on you, lolz. Loads of people have given in and accepted their fate), you can try a different desktop environment like xfce, kde, lxde, or you can install a different desktop environment that is more Gnome2-like such as a Gnome2 fork called Mate Desktop.

How To Install Mate Desktop On Ubuntu 12.04:

In Terminal Type:

sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu precise main"

In Terminal Type:

"sudo apt-get update"

"sudo apt-get install mate-archive-keyring"

"sudo apt-get update"

"sudo apt-get install mate-core"

"sudo apt-get install mate-desktop-environment"

How To Install XFCE On Ubuntu 12.04:

In terminal type:

"sudo apt-get install xubuntu-desktop"

How To Install LXDE On Ubuntu 12.04:

In terminal type:

"sudo apt-get install lubuntu-desktop"

How To Install KDE On Ubuntu 12.04:

In terminal type:

"sudo apt-get install kubuntu-desktop"

And if none of these meet your liking there are other desktop environments out there like EDE, Cinnamon, and so on.


Terminal input does not wrap correctly, or at all

It's possible your terminal is not recognizing the window size correctly. I found a related question in U&L Stackexchange, and someone suggested the below way of checking whether this is what's going on:

Type

shopt | grep checkwinsize

If the output is not:

checkwinsize    on

You can use

shopt -s checkwinsize

to activate. To deactivate: shopt -u checkwinsize


How to fix E: Internal Error, No file name for libc6

I know this is as old thread, but I encountered this problem recently during an upgrade of 12.04 LTS. None of the solutions here fully fixed my problem. After diving into it further, I found that it had something to do with the upgrade of libc6 i386 during an upgrade:

$> dpkg -i /var/cache/apt/archives/libc6_2.15-0ubuntu10.6_i386.deb
(Reading database ... 259895 files and directories currently
installed.) Preparing to replace libc6:i386 2.15-0ubuntu10.5 (using
.../libc6_2.15-0ubuntu10.6_i386.deb) ... dpkg: error processing
/var/cache/apt/archives/libc6_2.15-0ubuntu10.6_i386.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:

After much tinkering, this seemed to work for. The goal is to remove the offensive libc6 package that fails to upgrade, and incrementally get the rest of the upgrade to work, which eventually also upgrades the libc6 package.

Run the upgrade (which will fail):

sudo apt-get upgrade
Then install the files we can from the cache (will succeed for some, but fail for others):

sudo dpkg -i /var/cache/apt/archives/*.deb
Remove the offensive libc6 (do not purge). It will cause a lot of dependencies to break, don't worry we'll fix them soon.

sudo dpkg -r --force-depends libc6:i386
Reconfigure it and other packages (will mostly succeed):

sudo dpkg --configure -a
Make a bit more more progress from cache (succeed for some, fail for others):

sudo dpkg -i /var/cache/apt/archives/*.deb
Now run another upgrade which will download needed packages (will fail on install):

sudo apt-get upgrade

If you're lucky, it might start working from here, but if not, one more round of cache installs will do it.

Install again from cache (will succeed!)

sudo dpkg -i /var/cache/apt/archives/*.deb

Now you can check that further installs/upgrades will succeed.


A 32 Bit operating system will handle 2GB of Ram just fine.
But you should consider upgrading to Ubuntu 14.04 or use 12.04, since 13.10 is no longer supported.


You need to install VirtualBox Guest Additions, depending of VirtualBox version you use.
Refer to the official website for downloading.


Thinkpad T520 - problem detecting nvidia card after enabling it after installation

The nouveau driver is the open-source driver for nvidia video cards and it is installed by default. To enable the proprietary driver from Nvidia, you have to open Additional drivers, as you already did. I think that this answer here should solve your problem, changing the graphics mode in your BIOS from Optimus to Discrete or Integrated. There are also other solutions involving bumblebee, which is a linux support driver for the Optimus technology and there is the official Ubuntu documentation here.


Ubuntu One Triplicated my contacts -- how can I delete all contacts so I can start over?

Did this happen with phone sync?  If it did, be careful as the instructions below may also delete the contacts in your phone when you re-sync.

The simplest way to delete everything is probably using our new bulk delete option.
To do this:

Go to: https://edge.one.ubuntu.com/contacts/
Click "Select all"
Delete


Installing ubuntu along side windows 7 is not a very safe idea on a long run. I had to pay heavily this July for this mistake. Instead, boot up in Windows 7. Delete one of those ntfs partitions in device manager, this will be shown as free space while ubuntu installation stage. Select "Do something else" option instead of "Install Ubuntu along with windows 7". In the next section, select that partition which is shown as free space. Use 5 to 10 GB in that for ubuntu swap area and the remainder for / (logical partition, ext4 file system). This is the cleaner method, which I follow nowadays successfully.


Testdisk not showing drives to copy image to

In Linux , test disk will not select a drive, it selects a location.

So , mount your target drive in /media , say it is in /media/data ...

Select which file(s) to recover

Press c to copy

Then select a destination

Navigate to /media/data

Note the ".." option would move up a directory, you may need to select that a few times to get to / , and then select /media and /data

If that fails, bind the data directory in /tmp

sudo mkdir /tmp/data
sudo mount --bind /media/data /tmp/data

and select data to write to


Ubuntu detects external HDD but doesn't mount it

1) please connect the drive

2) open file manager on Ubuntu

3) do you see your drive on the side bar?

3a) if yes right click the drive and select mount

3b) if no close file manager, open terminal run sudo fdisk -l Reopen file manager, do you see your drive now?


How to upload or save on FTP to /www folder on Ubuntu 12.04 localhost?

If you have root privileges you can use sftp and ssh for remote access.

sudo apt-get install openssh-server

You can even mount you remote folder, just add the following line to your fstab:

sshfs#username@ip:/var/www /media/mywww fuse  IdentityFile=/root/.ssh/id_rsa,defaults,nonempty,allow_other,idmap=user,uid=userid,gid=usergrpu  0 0

Locally you can add your user to the www-data group:

sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www


I know this isn't what most people want to hear, however Linux doesn't always play nice with 'fakeraid' that is baked into your BIOS. Instead, I would recommend using a software raid, namely MDADM. You would have to undo your fakeraid, and go back to normal disks first.

Example for mdadm RAID 5:

Install MDADM

apt-get install mdadm

Create raid. Adjust drive names accordingly. You don't need to use partitions, you can do whole disks:

mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1 --spare-devices=1 /dev/sde1

Then enjoy the security of RAID5, and use the device /dev/md0 as your raid device.

If you need more help, go straight to the source: https://raid.wiki.kernel.org/index.php/RAID_setup


Yes, I suspect your touchpad is configured for two finger scrolling and that "most of the time" you are accidentally touching your touchpad with two fingers.  If you do this all of the time it will work that way all of the time.


unable to install mongodb from mongodb repos

On 15.04 you have to install the debian wheezy version because of systemd. Run the following commands:

sudo rm /etc/init.d/mongod*
sudo rm /etc/apt/sources.list.d/mongo*
sudo apt-get purge mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools syslog-ng-mod-mongodb
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get clean
sudo apt-get update
sudo apt-get install mongodb-org
sudo service mongod start
systemctl status mongod

Ignore any "not found" or "unable to locate" errors on the first three commands.


Download part of a playlist from YouTube using youtube-dl

From the man pages:

--playlist-start NUMBER          playlist video to start at (default is 1)

So in your case: youtube-dl --playlist-start 5 https://www.youtube.com/playlist?list=PL-qBHd6_LXWaytjEA5obaZz1syWcUGY0Q


Use a live USB and boot your system.

Make sure you can mount your main partition in which your Ubuntu is installed. Lets assume it is /dev/sda1

Unmount that partition (NECESSARY). Now run this command which will fix errors in partition:

sudo fsck -a /dev/sda1

Make sure you you can mount the partition. Restart your system. it should work now.


OpenShot Video Editor blurs the video recorded by Simple Screen Recorder

I am a Windows user. The same thing happened with me, but I did a little experiment and found the solution. All instructions are as per Microsoft Windows interference

After saving the recorded video, by right-clicking it and select properties.
Under the Details tab -> scroll down to Video properties.
Note down the values of "frame width", "frame height" and "frame rate".
Start OpenShot and editing everything.
Click Export, a dialog box should open.
Under the Advanced tab -> select Profile -> Select any Profile (it doesn't matter) by default take "HDV 720 24p".
Now apply values from 'step 3' to corresponding properties and export it.

Now OpenShot will export the resolution the same as from screen recorder


When in MythVideo, hit M, then 'Scan for changes'.


I think if you retry to upgrade, it will start at the point where your connection broke off and will not download all the 600mb data.

By the way how did you download the 600mb packages, using apt-get upgrade?


How to change the "Index of .." template?

You can check my project ABBA which does exactly what you want. It uses Bootswatch templates based on the well known Bootstrap framework.
It is fully responsive, with multiple templates and very easy to set up.
The source code is available on GitHub so you can fork it and tweak it.
It uses Jekyll (GitHub Pages) to generate distribution files.


Initramfs after Kubuntu 16.04 installation - possibly partitioning error

I do just in gparted change flag boot as windows to linux.
too,in terminal linux type

sudo update-grub

and finally on grub both appear.


Can't properly update or upgrade, error processing package

I was able to correct the problem by following the instructions in this post just changing the to the proper package.
As it's a different problem I will leave this post here so anyone with the same problem as me can find the solution easy.


custom kernel, multimedia chortcuts for asus 1225c

Well, my compiled kernel is 3.2.0 and it's seems on that date then kernel was released my PC wasn't in market at all... Looked at changelog and found that in version 3.2.14 add more asus hotkeys.

Edit:

Founded solution, it seems i haven't enabled CONFIG_EXPERIMENTAL = Prompt for development and/or incomplete code/drivers if it enabled it expose:

CONFIG_ASUS_NB_WMI (Asus Notebook WMI Driver (EXPERIMENTAL))
CONFIG_ASUS_WMI (ASUS WMI Driver (EXPERIMENTAL))

After all, sulotion founded, marking this answer as answered. Hopefully, maybe someone this research will be helpfully.


You can log in to the server and start a screen (type screen. If not installed, you can get it with apt-get install screen in debian or ubuntu or yum install screen in fedora), which creates a new terminal session that can keep running even when your ssh connection is closed. Inside the screen session start your OpenVPN. You can detach the session (exit and let it keep running) by ctrl-a d. You can then log out and OpenVPN will keep running inside screen. If you log in again you can reconnect to your screen session using screen -x.

Inside screen you can also start a new session by ctrl-a c (create) and switch between sessions with ctrl-a n (next) or ctrl-a p (previous). Use man screen to learn more or use Google ;) You have to press ctrl-a esc inside screen to scroll up. If you close the last shell inside screen, screen will terminate.


Where inodes are stored in Unix-like system?

The inodes are stored in the partition where the filesystem lives as part of the filesystem meta-data, like in /dev/sda1 or whatever the disk and partition are called.

Exactly where and how they are stored depends on the type of filesystem, ext2|3|4, btrf, ufs, or others.


Why does integrity check fail for the 12.04.1 Alternate ISO?

This is an error in mastering the ISO, but can safely be ignored

You get this error because the install/netboot/ubuntu-installer/amd64/pxelinux.cfg/default file does not exist in the 64-bit alternate ISO image, although it does in the ISO's file-checksum list (md5sum.txt):

573bf62a1f14cdcef0e8299863547a5a  ./install/netboot/ubuntu-installer/amd64/pxelinux.cfg/default

See this pastebin for the actual contents of the install/netboot folder.

It can be ignored because the files refer to the minimal "netboot" ISO version, which is irrelevant when you are using a full alternate ISO.

If you really want to "solve" the error, you can download the missing file into the appropriate folder; beware that this may not be the last though because apparently there are six such missing files...


How to get new blue Tweetdeck on Ubuntu?

Adobe AIR for linux is no longer supported. However Tweetdeck has an awesome web client that I use:

It's in the Chrome store or you can just go to tweetdeck.com in Firefox.


Updating wine apps through the package manager

Most Windows software is not packaged in a deb, pip, snap, or similar format, so package management tools cannot be used. Package managers are convenient, but not magical.
Windows software is generally designed to use Windows install tools (like .exe or .msi) instead, which are often --but not always-- compatible with Wine.


You need to disable SecureBoot in your UEFI (BIOS) settings.


Landscape's OpenStack installation fails due to containers unable to obtain an IP

I found a workaround.

The core of the problem was that I was using virtual machines on ESXi. I enabled nested virtualization and managed them via virsh. For the networking to work I had to enable so called promiscuous mode on the ESXi portgroup and hence turned it into a hub (it's a shame that vSwitch does not support MAC learning).

As the virtual switch was connected using two NICs to uplink switches, promiscuous mode somehow caused the packets to be duplicated (despite the fact that all the communication was happening within single ESXi host!). The Linux bridge detected those duplicates and hence refused to bridge the packets.

Removing one physical NIC from the vmware switch solved the problem (disabling one NIC or setting as Standby or Unused did not). As removing NIC from switch was not a good solution for me I created a virtual switch without any NICs attached and created a Linux box that routed traffic to it. After that the installation went without any further issues.

I was not able to resolve it purely on the Linux bridge level.


how to install wireless driver for my old laptop hp dv6 1340ej

When you pinged Google directly, going through the DNS nameserver provided by your internet service provider, you got an average round trip time of 574 ms. When you pinged by number, thereby bypassing the DNS nameserver provided by your internet service provider, the average was 73 ms. That's not a great time, but obviously a huge improvement over 574 ms. I suggest you right-click the Network Manager icon and edit connections, select IPv4 wireless and change the method from Automatic (DHCP) to Automatic (DHCP) addresses only. Fill in the DNS nameservers as here: http://cache.gawkerassets.com/assets/images/lifehacker/2009/12/ubuntu_dns.jpg

Save and close. Now is it improved?


Check your sources list /etc/apt/sources.list is as it should be. Run

sudo apt-get update

to download the package database. Then try again.

If all else fails, maybe you can find further advice and newer versions to compile from source on www.vim.org.


Send VirtualBox Guest traffic to Host's router

When creating a Guest/VM in VirtualBox, that VM is added to a new network, which uses the Host as a gateway.  This means that, by default, all VM traffic will be NAT'd by the Host, and as long as the Host can reach the Internet, the VM can also reach the Internet.

Again, these are the default settings.  Can you describe any changes you've made to the defaults, or why this doesn't work for you in particular?  If you have these details, please update your question.

Last time I spun up a VM, the Guest was given an IP address in 10.1.2.0/24 CIDR block.  This could cause complications with your network, depending on IP addresses.

My guess is you went into the Guest's settings and didn't see any "Network Devices", so maybe you added one?  This could cause complications, as the functionality that you want is the VirtualBox default.  If you don't have sensitive data, maybe try creating a new Guest, and do not adjust any settings related to the network until you see it working initially.

Start with two, new Virtual Machines, with default Virtual Box network settings, and watch the behavior.  The two machines are on the same subnet, for which your Host is the gateway.  The Host performs NAT for all VMs, so start with these default settings, and then work towards your goal once you see the two machines can communicate over TCP/IP.


The Ubuntu Kylin Software Center is strictly in Chinese. I tried several ways of changing this, some of which were:

Removing the Chinese Language Support (No luck, you can't remove it from Kylin just in case)
Installing English and setting it as default
Installing English Language Pack through the terminal and doing locale update additionally to checking language support with check-language-support. Including rebooting just in case. No luck

My recommendation is to literally use the Software Center. If you go to the terminal you will notice you have 2 Software Centers. The Kylin Chinese only ubuntu-kylin-software-center and the normal Ubuntu Software Center ubuntu-software.

So simply either open the Dash, look for Software Center and drag it to the main menu in Kylin or run it from the terminal.


How can I see the I/O activity of certain programs?

if you want a summery of a certain process, you can use iotop with this syntax:

sudo iotop -p PID

PID is the pid of the process you're trying to analyze. you can get PID by using top or ps -A and search through it to find your process ID.


Looks like apt is already running  that's what this means "Could not get lock /var/lib/apt/lists/lock"

The reason it is unable to get the package is because update failed because it could not get the lock

I would suggest rebooting the computer so that apt fill clear itself up and then run this script that I use to setup my computer with netflix

#!/bin/bash
sudo apt-add-repository -y ppa:pipelight/stable
sudo apt-get update
sudo apt-get install -y pipelight-multi
sudo pipelight-plugin --enable silverlight
sudo apt-get install -y netflix-desktop

if you still cannot get a lock then maybe remove the lock file though this is very questionable

sudo rm /var/lib/apt/lists/lock

not done still editing


Unable to install package linux-image-3.13.0-83-generic

You can download the package here and then install it by:

# for 64 bit system
dpkg -i --force linux-image-3.13.0-83-generic_3.13.0-83.127_amd64.deb

# for 32 bit system
linux-image-3.13.0-83-generic_3.13.0-83.127_i386.deb


Is there a way to see details of past notification in ubuntu 20.04 LTS Gnome desktop

Apparently, as of now there is no built-in log of notifications.
Nevertheless, you can easily setup a script that listens to the notifications and logs them, see this, e.g.
You would autoexecute the script at startup, How to run scripts on start up?, ref
, and voilà!
Notes:

You might find a lot of (perhaps misleading) links to indicator-notifications, Recent Notification, NotifyOSD. That would not solve your problem.
You can test your configuration with notify-send.

Related:

How can I log all notify-send actions?
https://forums.linuxmint.com/viewtopic.php?t=291196
Is there a way to view notification history?


20.04 - chmod not working on exfat mount

And what happens when you do this:
** Unmount the partition:
sudo umount /mnt/INT-1TB-4K

** Change your mount expressions to this:
UUID=0E7E-6579 /mnt/INT-1TB-4K exfat defaults,umask=000 0 0

** Make systemd happy:
sudo systemctl daemon-reload

Remount with this:
sudo mount -a

ExFAT should have mounted 777 by default so I'm guessing your use of the "permissions" option disrupted the space-time continuum.
Hind-site is 20/20 but NTFS would have been a better choice - if you were going to use a non-linux-native filesystem.


This isn't a folder, it's a network resource. You can use it to connect to other computers (like accessing a folder on a different desktop pc / laptop or on a usb stick plugged into your router). That's why you can't delete it.


There is No online antivirus for linux.

click here and here and see why do you need an antivirus for ubuntu


VERY Slow external hard drive (usb 3) write/read speeds

I recall seeing something about poor performance on Seagate 4TB drives on especially Linux machines. I've got one of these and it's a dog when you start copying lots of files. Been waiting for hours for it to copy about 60gb of files.
I read up on this some time after I got the drive and realized this. AFAIK the 4TB external I have sports SMR technology with a Cache to help mask the performance issues. But once you do write intensive tasks like try to copy several large files at once you get to notice a radical performance drop. I see each copy drop to 500kb/s. The total combined transfer rate between all the copies is slower than my Internet connection.
Here's a good explanation of SMR I found when I first tried figuring out what's happening:
https://blocksandfiles.com/2020/04/15/seagate-2-4-and-8tb-barracuda-and-desktop-hdd-smr/

Why SMR drives are sub-optimal for write-intensive workloads
Shingled magnetic recording gets more data to disk plates by partially >overlapping write tracks, leaving the read track within them clear. Read >IO speed is unaffected but data rewrites requires blocks of tracks to be >read edited with the new data and rewritten as a new block. This >lengthens data rewrite time substantially compared with conventionally >recorded drives.
Write-intensive workloads are worse affected by SMR delays than read-intensive workloads. Therefore SMR drives are typically used for >archival-type applications and not for real-time mixed or route-intensive >use cases.
Caching writes to a non-shingled zone of the drive and writing them out >to the shingled sectors in idle time will hide the slow rewrite speed >effectively – until the cache fills when rewrite IO requests are still >coming in.
The cache is then flushed and all the data written to the shingled area >of the drive, causing a pause of potentially many seconds while this is >done.

You may do well to look on Mac forums too. I'm also on Ubuntu but we're all in the same boat.
https://hardforum.com/threads/seagate-3tb-slow-write-speeds-drive-failing.1924143/


Installing Ubuntu on an internal hard drive, and removing completely to boot Windows from another internal HDD

If u install Ubuntu in a separate HDD there wont be any problem with the bootloaders and you can switch back to windows as you mention


It works as expected.

By convention, the prompt ends with $ for users and by # for root. This is the \$ in PS1.

The other difference is the ~ vs /home. This is also normal. It is the \w part of the prompt, the current working path. If it begins with the content of $HOME, it is replaced by ~.


Where can I get MonoDevelop  .deb to install while off-line?

You can look here:

http://pkgs.org/ubuntu-11.04/ubuntu-universe-i386/monodevelop-python_2.4-2_all.deb.html

You have to ensure you get all the requires:
    libglib2.0-cil (>= 2.12.10)
    libgtk2.0-cil (>= 2.12.10)
    libmono-corlib2.0-cil (>= 2.6.3)
    libmono-posix2.0-cil (>= 2.4)
    libmono-sqlite2.0-cil (>= 1.2.6)
    libmono-system-data2.0-cil (>= 2.6.3)
    libmono-system2.0-cil (>= 2.6.3)
    monodevelop (>= 2.4)
    monodevelop (<< 2.4.)

I am not sure if there is a single .deb file that will take care of that for you.


Deleted the Ubuntu file in Windows, but i am still prompted to choose between Ubuntu and Windows on boot

There their is a small program called EasyBCD for.

http://neosmart.net/EasyBCD/

just go to edit boot menu and remove ubuntu and your done.


Guake no longer showing desktop when opening

I found what it is. It's the Use compositing which I have enabled in my desktop settings. When I had that disabled in showed my desktop background now, but applications don't have that transparency in the backgrounds anymore.


My webcam flips the picture, how do flip it back?

According to this post on the Asus UL30 team's mailing list you can use this PPA to fix the webcam in 10.04. Unfortunately there doesn't seem to be information on how well this works with 10.10.

I recommended joining the team, posting on the mailing list since you'll find a bunch of UL30 owners there, and then updating your progress here so that we can point people to the right information. This information should at least get you pointed in the right direction.


Parted input/output error while making a new GPT table

Try to use gdisk (sudo apt install gdisk if you don't have it):

(Remember to unmount the usb first, e.g. umount /dev/sdxn)

$ gdisk /dev/sdx

> x     # expert mode

> z     # zap (destroy) GPT data structures and exit

(press yes when prompted)

$ gdisk /dev/sdx

> o     # create a new empty GUID partition table (GPT)

> w     # write Changes

You can find out the correct device (sdx) by typing lsblk for example.

If it has worked this far, you can try to add partitions with gparted or any other software you like.


If by ~$ you mean the shell prompt (the screen should be completely black with grey letters), you can attempt to start the GUI (X windows system) by running

startx

by entering the above and pressing ENTER.

If it does not work, it probably means the GUI was not installed, in which case you should try installing again or troubleshooting the installation.


Go into System Settings --> Keyboard Layout

Click on Options

Go to Key(s) to Change Layout, and choose Alt+Shift


How to run Linux game (game_name.x64 file) with dedicated GPU?

Run your game in a terminal with DRI_PRIME=1 prefix.
The game will run on AMD GPU.


Is Ubuntu desktop 32 bit source code the same as Ubuntu desktop 64 bit source code

The source code of 64 bit OS will only differ to support the 64 bit architecture and any extra features required by it. Everything else(including the GUI) should essentially be the same.

These changes are back-end changes and will not be visible to you in the GUI. The only difference they make is in performance and RAM usage.

The reasons why you find changes are probably

You are looking at two different versions of Ubuntu
You are looking at systems which are configured differently and have different set and/or different versions of softwares.


Does a public key need to be saved on every client that wants access?

It depends on how you configure your /etc/ssh/sshd_config file. If you still allow logins with just password authentication, you won't need the keys on every computer you want to log in with.

The following line in that file will stop any regular password logins:

PasswordAuthentication  no

This line is set to yes by default.

You can create an ssh key-pair with no associated passphrase (leave blank in the generation process), then the username supplying the correct public key will be able to log in with no password, but your password logins will still work.

You're not defeating the purpose of having a key by allowing password login, but you are leaving more options for an attacker, such as brute-forcing your password. If you use a strong password, and a non-standard username (not root, admin or user), you will lessen this risk.

I'm a big fan of not having port 22 open on the router which your PC sits behind, but port forwarding or NAT-ing a non-standard port to your PCs ssh port. Then when you log in you'd use:

ssh -p<port-number> user@ip_address

Here's a good link about ssh-hardening, if you're going to have your port open to the world!


No. The sound system is loaded after the boot screen. At the earliest you can make a sound just before the login screen

You can add a script to the system in /etc/init/ that has a

start on filesystem or runlevel [2345]
exec /usr/bin/aplay {/dir/to/audiofile}

But this will only work if this is done after the audio system is loaded. That is closer to the login part of the process and not at the boot screen.

Playing a sound during login is easy: you can use "startup applications" for that.


I generally backup ~/ as it contains most program's configurations (i.e. chromium,gedit), and /etc as it contains most system configurations (i.e. wifi, sudo).

Just one opinion though.


Fan runs constantly on an Acer Aspire s3

I am having the same problem. After breaking my head with information in the net, I found that one of these can be the reason:

Your BIOS is outdated, so you need to update your BIOS.
Most problems start after you run Ubuntu updates, which install some propriety software and the drivers are (purposefully? Eg:Radeon ones) incomplete.
Some lines in your grub configuration are put to wrong value. (DEFAULT_CMD_something line)
Your laptop's battery is dead and always requires power to run.
Your power supply is different in voltage from the country you bought laptop.

Solution: Forget the incomplete drivers which are the root cause of problems. Re-install the Ubuntu 11.10 and never ever update the recommended updates. If you do so, you end up with proprietary problems. So just re-install and be happy.


Accessing router with Ubuntu client from remote

Try using a free VPN service like hide.me, you can check it out, the free service limits the ip to US servers/ Canada servers so you can access your netflix account easily without bothering to connect to your router.


If it has GRUB then select recovery mode. You should have a root shell. Look up adding users.

If you want to set a root password run passwd root


MacBook Pro Temperature Issues (tlp and cpufreq used)

You should install macfanctld as suggested by:

http://ubuntuhandbook.org/index.php/2013/11/ppa-install-fan-control-ubuntu-macbook/


How to monitor a local file for changes, apply a RegEx replace on it and save/overwrite to a destination file?

Before using this script install inotify-tools (sudo apt-get install inotify-tools).

#!/bin/bash

FILE=/path/to/monitored/file
DSTFILE=/path/to/destination/file
SEARCH="Text you want to replace"
REPLACE="Text that will replace the one in SEARCH"

while inotifywait -e modify $FILE; do
  sed "s/$SEARCH/$REPLACE/g" $FILE > $DSTFILE
done


How to stop Archive Manager from prompting during zip downloads in a web browser?

Click the hamburger menu (button with three horizontal lines on the right of the address bar) and select "Preferences". Under the section Applications, search "archive". All "archive" file types appear. Set the "Action" to "save file" to have Firefox default to saving the archive instead of opening it in Archive manager.
To eliminate any prompt and have the files automatically downloaded in, e.g., your Downloads folder, check the Downloads section just before the Applications section. select the option "Save files to...". If you want to decide each time where the download goes, select the second option "Always ask you where to save files".


pip install pyopenssl object has no attribute 'SSL_ST_INIT'

The below command did the trick.

python2.7 -m easy_install --upgrade pyOpenSSL


Ubuntu Clean Install on new HD for Dell Latitude E6420

Did you read all these articles?

There are really a lot of possible causes for this behavior. Try to do a complete new install of ubuntu while the BIOS is in legacy mode. Setup the SATA controller as AHCI is fine and should left untouched.  Ensure that the harddisk has an MBR partition table! Install the grub loader as a MBR (i.e. /dev/sda) and not as an bootrecord (i.e. /dev/sda1).

To ensure that the disk has a MBR parition table you may boot the ubuntu life system and create a new empty partition table on your harddisk with the fdisk or gparted programs.

You may start an ubuntu live system and open a terminal. Gain root access in the terminal shell by typing

sudo -i

Than try to find out the device name of your hard disk, have a look at the output of

ls -al /dev/disk/by-id/

There should be a line ending up in /dev/sda or /dev/sdb where the left part thereon meets your diskname.

Supposed it is /dev/sda, than you start fdisk:

fdisk /dev/sda

In fdisk you can get an overview about available commands by typing m+return.

Create a new MBR partition table with o+return and write it to the disk and leave the fdisk program with w+return.

Thereafter reboot the system and try again an installation of ubuntu on the disk.


How do I get my computer to shut down with the power button?

Install dconf-editor first

sudo apt-get install dconf-editor

At Dconf editor window, press Ctrl + F and search for "button-power". Otherwise, navigate to

org > gnome > settings-daemon > plugins > power

Change the value to from interactive to shutdown just like this

That's it

PS: Please mark as accepted if working


Check the following things:

Do you have a remote desktop client/server for Windows?
If you aren't using a router/switch between the computers, ensure that avahi is installed on Kubuntu and Bonjour on the Windows PC. THis is fastest done by installing iTunes in windows.
If you aren't using a router/switch between the computers, set the network mode in Kubuntu to Link-Local only

Using ZeroConf aka Avahi aka Bonjour, the hostnames of the computers would be computername.local


Try symlinking the files:

ln -s usr/share/english/errmsg.sys /usr/share/mysql/errmsg.sys


Well, if you want to check your balance or top up on a SIM-Card, there is the Prepaid-manager-applet. It has a nice graphical interface and is in the official repositories:

If your provider is not already listed, you can add the USSD-number to '/usr/share/mobile-broadband-provider-info/serviceproviders.xml'. Find the section of your country and provider and add

    <balance-check>
        <ussd>*102#</ussd>
    </balance-check>

whereas *102# has to be replaced by your providers USSD-code.
If you also want to top up your phone with this applet, you also need to add

    <balance-top-up>
        <ussd replacement="CODE">*130*CODE#</ussd>
    </balance-top-up>

And secondly you can also send USSD commands via gammu. Install wammu for a graphical interface. The configuration of gammu will be more complicated but it offers a lot more functionality -- you can send USSD commands of any kind, not just for balance-check.


You can run things as root using the sudo command, so try sudo logkeys -s in the terminal and see if that helps?


Can't install nvidia driver 430 on Ubuntu 18.04 (Dell Inspiron 15 5000 Gaming)

Please, try fixing the broken packages and updating your system first by running the following command in the terminal:

sudo dpkg --configure -a && sudo apt update --fix-missing && sudo apt install -f && sudo apt full-upgrade

After that, please reboot your system and install your drivers using the ubuntu-drivers tool by running the following command in the terminal:

sudo ubuntu-drivers autoinstall

Then finally, please reboot your system.

If the first command fails to fix your broken packages, please follow the instructions in this answer then try installing your drivers afterwords.


Raid0 = stripe, not mirror.  Loss of any disk with raid0 results in loss of the entire array.  You will need to restore from backup.

If you really have a raid1, then mdadm --add should be able to add the new drive to the array and it should automatically resync.  Do NOT dd the drive.


How to See Hibernate in the Power Setting Correctly?

Open dconf editor. (If not installed run sudo apt-get install dconf-tools in the terminal)

Navigate in dconf editor to: org>gnome>settings-daemon>plugins>power

I here there are options for things such as when the lid closes with all options. Change to Hibernate.


To get autologin working run in terminal:

sudo gedit /etc/lightdm/lightdm.conf

And in the line

autologin-user=

add your user name.

To disable keyring password you can use THIS GUIDE

But it is a security issue


To boot Ubuntu 16.04 Desktop without X one time, add systemd.unit=multi-user.target to the linux command line in GRUB.

To make this the default, use

sudo systemctl set-default multi-user.target

To return to default booting into X, use

sudo systemctl set-default graphical.target

To see the current default target,

sudo systemctl get-default


NO INTERNET (wired or or wireless) Ubuntu 20.04

One way you can try to establish internet connection to your laptop is to connect your smartphone (android/iOS) to your laptop via USB cable and activate hotspot which will use your data, but you'll have internet connection on your laptop.
Similarly android phones support "WiFi tethering" via USB cable, which will use WiFi instead your data plan.
These are not direct solutions to your issue, but I hope this helps even a bit.


Try ab from the apache2-utils package. it will tell you connection, processing and waiting times:

$ ab  http://www.yahoo.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.yahoo.com (be patient).....done

Server Software:        YTS/1.20.13
Server Hostname:        www.yahoo.com
Server Port:            80

Document Path:          /
Document Length:        82 bytes

Concurrency Level:      1
Time taken for tests:   0.066 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Non-2xx responses:      1
Total transferred:      1217 bytes
HTML transferred:       82 bytes
Requests per second:    15.20 [#/sec] (mean)
Time per request:       65.796 [ms] (mean)
Time per request:       65.796 [ms] (mean, across all concurrent requests)
Transfer rate:          18.06 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1    1   0.0      1       1
Processing:    65   65   0.0     65      65
Waiting:       62   62   0.0     62      62
Total:         66   66   0.0     66      66


Eagle

  Eagle includes a layout editor, schematic editor and autorouter.

To install Eagle

sudo apt-get install eagle

PCB designer

  This one seems to be more complex than eagle with better(complex) features like rats nest feature, design rule checking and industry standard RS-274-X(gerber)

To install PCB designer

sudo apt-get install pcb-gtk             #maybe pcb-lesstif too

gEDA Schematic

  This one is intended to be user friendly and easy to use, similar to Eagle.

To install gEdA Schematic.

sudo apt-get install geda

Kicad

  This one seems to be overconfident.No info, No screenshot.But it's a PCB designer and comments/ratings are good.

To install Kicad

sudo apt-get install kicad

Fritzing

  In it's Beta, this may not be one you would want to use professionally.But it's worth giving a try.Worth noting that it has something like Autocompletion.

To install Fritzing

sudo apt-get install fritzing

Some helpers to above

Gerbv gerber file viewer
Electric
Visolate

Personally, I think Eagle would best suit your needs.All of the above are Open source and free, just to mention.


How to unmount a USB flash drive (that is shared over SAMBA) without having to turn off SAMBA first?

If your local user is 100% sure that there is no program keeping any file open on this drive anymore it is the sync command to write data from buffers (if any) to the drive. Then you can unplug the USB flash drive.
From DESCRIPTION
 sync writes any data buffered in memory out to disk.  This can
include (but is not limited to) modified superblocks, modified inodes,
and delayed reads and writes.  This must be implemented by the kernel;
The sync program does nothing but exercise the sync system call.

The kernel keeps data in memory to avoid doing (relatively slow) disk
reads and writes.  This improves performance, but if the computer
crashes, data may be lost or the file system corrupted as a result.
The sync command ensures everything in memory is written to disk.

Any arguments are ignored, except for a lone --help or --version
(*note Common options::).

An exit status of zero indicates success, and a nonzero value
indicates failure.


Which Ubuntu version has more support here and on the forums? 12.04 or 13.10?

There are two contrary arguments for this:

Use what's most actively used. You can work that out with something like the Steam Hardware Survey (or wherever you can find that sort of breakdown). In this case it suggests the latest version is most popular but remember the biases. Steam survey statistics are gamers.
Use what's been around the longest. 12.04 was the latest release when it was first released and there has now been over a year of people bumping into problems, asking questions and having things fixed.

While you might find more people are currently using 13.10 (and might be more inclined to help you), you'll probably be more likely to be able to help yourself with an older release because the support already exists.

You're speaking as if a 13.10 user won't answer a question about 12.04 but you have to remember that even if the issue is very specific to 12.04, many 13.10 users used to be 12.04 users. Many (myself included) have installs of both. For the vast majority of problems, version means very little so I'd just go with whatever works best for you. It takes about 20 minutes to download and test Ubuntu so I'd spend a little bit of time working out what the best starting point is.

And remember that paid support is available for all supported versions from Canonical. If you're running into so many problems on a daily basis that it's made you make a software decision, you might need more help than the community can give you.


Though this is outdated post, but I share the answer so the maybe it be useful for some.

What GEdit does is the right thing. you are writing in Persian which is a Right-to_Left script, so it should be displayed in the same way: right to left.

Adding LTM (Left-to-Right Marker) is not the solution since it Changes the direction of the line into Left-to-Right. If so, the line will be messed up if you add Latin characters in the middle of Persian text.

You don't need to be worried about the content. Since it is simply a text file, the presentation is the matter of software rendering preferences. You text is still a plain text without any specific direction.


can ubuntu 12.10 be installed using wubi

Yes, you can install Ubuntu 12.10 with Wubi. I just did, a couple of days ago.

Double-clicking the DVD drive didn't seem to work, so I downloaded the Wubi app from Ubuntu website separately, and ran it. It detected the disk, extracted files and started the installer. Not sure if it was redundant, either way it worked. Hope this helps.

Edit: Found https://askubuntu.com/a/124828/114038 which confirms that 12.04+ requires you to use the standalone Wubi.exe, as I did.


Changing the HDD to and SSD would indeed give you more battery life, but probably not more than 15-30 minutes. Ubuntu is not really more power saving than windows, but if you run a desktop environment that is low on processes and not too shiny, you can probably get some more minutes out of it.

I would suggest you try it out from a Live DVD/USB. See how long the battery lives on that with the HDD. If you got the money to spare, check also with the SSD. Maybe even just install Ubuntu on the SSD and just change the disk according to what suits you better.

Also, old batteries tend to loose capacity over the years. I've got a laptop that just cannot hold power more than 45 minutes, because of bad cells in the battery. So maybe consider trying with a new battery as well.


Problem with remapping graphics tablet buttons to keyboard shortcuts

The cause is pretty simple: according to gimp's profile, xev press control/shift buttons, and xbindkeys skips release event because shift is still pressed. You can duplicate each section of config to handle such situations, like this:

"/opt/xp-pen/handler.sh 1 1"
  b:100
"/opt/xp-pen/handler.sh 1 1"
  b:100 + shift
"/opt/xp-pen/handler.sh 1 1"
  b:100 + control
...


How do I manually boot from the grub prompt after do-release-upgrade?

After looking at jdehaan's post, I checked out a machine with a similiar configuration. Going off another box's grub.cfg, I used the following commands to get this thing to boot:

recordfail
insmod ext2
set root='(hd0,1)'
linux /vmlinuz-2.6.32-server root=/dev/mapper/SS928-root ro quiet
initrd /initrd.img-2.6.32.30-server
boot

I suppose the next step is figuring out how to replace the grub.cfg on this machine now.


All windows showing fuzzy shadowing after waking from suspend

I have just found this issue mentioned on an Nvidia forum, and it seems to be related to the latest drivers, although the ones mentioned in the forum are slightly newer than my own. I have driver 375 and the issue is reported under 378.

It seems to be an issue involving compiz, and so simply killing (and presumably restarting) the process works.
A workaround solution posted by one user is to kill the process in a script that runs after the system wakes up:

kill $(ps -C compiz -o pid=)

I tried this during a session, by finding and killing the process:

~$ ps -C compiz
   PID TTY          TIME CMD
   4158 ?        00:00:11 compiz

~$ kill 4158

This leads to a few moments of weirdness, before compiz restarts - then everything is fine once again. As this is a reported bug, I would expect it to be fixed in the next driver release from Nvidia.


For full disk LUKS encryption, is the swap partition encrypted?

From https://ubuntuforums.org/showthread.php?t=2357927:

lsblk will show the relationship between partitions and their containers. For example:

$ lsblk
NAME                          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                             8:0    0 55.9G  0 disk
├─sda1                          8:1    0  487M  0 part  /boot
├─sda2                          8:2    0    1K  0 part
└─sda5                          8:5    0 55.4G  0 part
  └─sda5_crypt                252:0    0 55.4G  0 crypt
    ├─ubuntu--mate--vg-root   252:1    0 51.5G  0 lvm   /
    └─ubuntu--mate--vg-swap_1 252:2    0    4G  0 lvm   [SWAP]

Here you can see that the swap partition is within a dm-crypt container, and hence it is encrypted.


After I burn the image file to the sd card, it cannot work on the Raspberry Pi

I've got the same problem same boot screen, i've tried to install the latest image ( https://ubuntu.com/download/raspberry-pi-core ) on my 32GB card with Raspberri Pi Imager, Balena Etcher and the official ubuntu instruction and got the same result : no boot. The only Ubuntu i've sucessfully boot on my new Raspberri Pi 4 is Ubuntu server 20 with Imager. i've also tried to modify the conf file as specified here (https://jamesachambers.com/raspberry-pi-ubuntu-server-18-04-2-installation-guide/ ) without any result.


windows 7 not starting after installing ubuntu 13.04

This may be an issue in your GRUB menu.
Try the Recommended Repair of the Boot-Repair tool.


Install Mobizen share android screen on PC

I'm a new Ubuntu user and I'm trying to install mobizen with wine.

After the setup it does not start from the desktop icon.

Thank you for the help, experts.


How can I install gcc 4.6 side-by-side with the current version from the repositories?

If you know your way around the command line, you should be able to compile from source and set the configuration to install in /opt.

Something along the lines of ./configure --prefix=/opt.


fatal error: avr/io.h: No such file or directory compilation terminated

try installing avr-libc and gcc-avr:

sudo apt-get install avr-libc gcc-avr

Then, to compile code for the AVR you need start by compiling it to an executable using: gcc-avr and then link it using avr-objcopy to create a hex file for the device:

avr-gcc -mmcu=atmegaX yourpgm.c -o yourpgm.elf

avr-objcopy -j .text -O ihex yourpgm.elf yourpgm.hex

Then, the hex file generated is the one to be installed on the device. You can use avrdude to import it. There are a lot more options that you can use for the compiler and linker, I suggest reading the man page for these tools; they are very helpful.


Accidentally Deleted apache2.conf what can I do?

If you want to get the same file back you may have to use some sort of recovery software.

If not, this will do the trick:

sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install --reinstall  apache2 apache2-utils


How to make sorted column background of Nautilus list view brighter?

I've been trying to figure the same thing.  I'm certain this is controlled by settings in the theme's gtk-3.0 folder, if that helps.  only 2 themes I've found change that. Adwaita is built in theme, for me it makes the selected column background all white. However, there is a nicer result if you change the theme to Zukitwo.  http://lassekongo83.deviantart.com/art/Zukitwo-203936861.  In order to run that, you have to install the murrine theme engine (I think for the gtk-2.0 apps like firefox) and then also the unico engine for the gtk-3.0 apps, like nautilus.

After you do that, the nautilus selected column will be lighter.  I'm trying to find out which if the css settings in that theme make a difference.  I haven't yet figured it out.


Can I install Microsoft Visual Studio on Ubuntu?

Check for Monodevelop, it is one of the alternative and most compatible IDE for visual studio, a dotnet development IDE.

http://monodevelop.com/

It is available in ubuntu repositories, just run sudo apt-get install monodevelop


Broadcom BCM4352 not showing all wifi networks

There is a temporary workaround here

But it has to be executed after each reboot.


How to do install the Ubuntu 12.04 LTS for Android Studio?

You can search on Google for android studio ubuntu, and there are several sites with instructions, e.g.:

http://www.cnx-software.com/2013/05/16/installing-android-studio-ide-in-ubuntu-hello-world-application/

http://darrylclarke.com/2013/05/17/a-quickie-on-using-android-studio-on-ubuntu/


Method 1:
 You can use SAMBA for file sharing(but samba is mostly used to share files between linux and windows machines)

In terminal type the following gksudo gedit /etc/samba/smb.conf
Add the line usershare owner only = False  to the [global] section.
Go to Places>>Computer.
Right click the folder you want to share and choose Sharing Options.

Check the box that says Share this folder.
Write your share name and check the box that says Allow other people to write in this folder.
Now you should be able to see and access the shared folder from your network.

Method 2:
You can use Openssh run the following to install it,

sudo apt-get install openssh-server openssh-client

Now goto Places menu and choose Connect to Server

(In oneiric (11.10), click desktop and use the menu at the top: File --> Connect to Server)

In the Service type: Select SSH
In Server: give the IP address of the PC where the info is on.
In Port: give 22.
Now in Folder: Pick the folder you wish to share.
In User Name: give the username of the pc you are connected to.
Click Connect after that you will get a windows where you have to enter a password of the PC you are trying to connect to.
Now you have read/write permissions.


Ubuntu Software Center hangs when installing software while other software is queued

Uninstalling and reinstalling Software Center solved this issue.


No need to go into console, you could achieve the same by adding a custom keyboard shortcut to re- enable your internal screen.

Choose System Settings > Keyboard > Shortcuts > Custom Shortcuts, click the + and add the command to a shortcut of your choice:

xrandr --output <screenname> --auto

Just tested it on my system (laptop, 15.10); switched off my screen and successfully re- enabled it with the keyboard shortcut, running the command :)

Alternatively

You could use an edited version of this script. The version below (small background script, is checking once per four seconds if an external screen is connected) makes sure your internal screen is switched on

#!/usr/bin/env python3
import subprocess
import time
# --- set your internal screen below (the example is my primary screen)
internal = "DVI-I-1"
#---

# don't change anything below
scr_info1 = 0

while True:
    time.sleep(4)
    # read the current screen setup from xrandr
    get_screens = subprocess.check_output("xrandr").decode("utf-8").splitlines()
    scr_data = [l for l in get_screens if " connected " in l]
    # count the number of connected screens
    scr_info2  = len(scr_data)
    # if the number of connected screens changes,
    # switch off the internal one if there are two screens
    if scr_info2 != scr_info1:
        if scr_info2 == 2:
            ext = [s.split()[0] for s in scr_data if not internal in s][0]
            subprocess.Popen(["xrandr", "--output", internal, "--off", "--output", ext, "--auto"])
        else:
            subprocess.Popen(["xrandr", "--output", internal, "--auto"])

    scr_info1 = scr_info2

How to setup

Copy the script above into an empty file, save it as switch_screens.py
In the head section of your script, set the name of your internal screen. To find out, open a terminal window and run the command xrandr (no external screen connected) The line with "connected" in it shows the name of your screen in the first string, looking like: VGA-1 or something like that.
Test- run it by opening a terminal window and typ the command:

python3 /path/to/switch_screens.py

While the script runs, connect your external screen, wait for you internal screen to switch of and disconnect again.
If all works fine, add the command below to Startup Applications: open Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 15 && python3 /path/to/switch_screens.py"

Log out and back in. Now your internal screen is switched off automatically if an external screen is connected, re- enabling it if you disconnect.

The script adds no noticeable burden at all to your system.


LibreOffice Calc: Wrapping text while not expanding the cell's height in just 1 row

Experimenting (Jan 2017 with v5.0.3.2) showed this works: Select the column you want to wrap then click Format Row, choose Optimum Height and untick the Default Value box. Not intuitive but the cells magically wrapped themselves!