Check the firewall settings on that machine from which you can't connect. You may find that that port is closed.
See also UFW OpenSSH application port change?
If that doesn't work, use ssh -v to get more verbose output.


Samba permission require execute attrib to list folder contents?

The execute bit on a directory is used to allow the user to descend into the directory (traversal).  If you do not set the execute bit you will not be able to read or manipulate the contents of the directory.  By default a directory permissions is 0775.  This means everyone can see and manipulate the files therein.  The files created have the default permissions of 0664.  This means that the user and group have read and write while all others have read permissions.

The exception to this is the root users creation permission settings.  These are 0755 for directories and 0644 for files.  This still allows all users to view the files in the directory while only allowing the root user read and write permissions.

You need to allow the user to access the directory with the directory permissions and the ability to manipulate the files with the file permissions.

This needs to be set initially on the shared directory.  Then you can provide for the share file and directory creation permissions with this

[share]
...
       create mask = 0664
       directory mask = 0775

The create mask is for the file permissions and the directory mask is for directory permissions.  Since all permissions are defined by the most recent umask setting you can consider the mask configurations as Samba's umask settings for the share.


How can I hide the eject icons from nautilus sidebar for permanently-mounted drives?

If your mount point is not under /media, but for example under /mnt, the icon will not be showed.


How to publish a game that requires native libraries on the Ubuntu Sofware Center

The best way to submit for review through MyApps is to submit a tarball or include your packaging source. The reviewers have to un-ar your binary deb and recreate it using the data.tar.gz so in reality submitting a binary deb does create more work. The packaging team will figure out what is needed to make your application build and run properly.


Split a file in two different parts but use it under one path

This might be a completely bogus answer, or it might turn out to be absolutely brilliant.  I haven't decided yet.

Create 3 101GB (100 + 1 for some extra wiggle room) disk image files, and place the disk image files on the respective drives.  Then put those disk images in RAID.  You should be able to treat "/media/[drive]/image1.img" just like /dev/sda1 in a RAID configuration.  That is, create these image files:

/media/SSD1/image1.img
/media/SSD2/image2.img
/media/SSD3/image3.img

Or what ever image format you need to use.  Like ".iso" or ".dmg" or whatever.

Then create a RAID array using /media/SSD1/image1.img instead of /dev/sda1, /media/SSD2/image2.img instead of /dev/sdb1, etc.

You should be able to do this with as many image files as you need.  Just make sure to add a little extra space for room after formatting.


Can I configure both Alt keys to print 3rd level signs via xmodmap or keyboard-options?

This is how I did this:

use the xev command. This will allow you to get the decimal keycode of the key you want to choose as third-level chooser. Then close it.

Then calculate the hexadecimal number of the keycode you got and type the following :

xmodmap -e "keycode 0xHEXA_NUMBER = ISO_Level3_Shift"


How to add disk as folder in Ubuntu 14,04?

You probably have to create a partition table and create a partition them first

fdisk /dev/sdc

After that you should see a

/dev/sdc1

and mount it

mount /dev/sdc1 /mnt


Running 12.04 here. hdparm -tT was giving normal speeds, but cp, dd, rsync were slow, 10MB/s max. Caching kept small data transfers from gumming things up, but anything over 100MB would cripple the machine. If it took less than a minute to get to the console or launch a terminal window while it was working, I'd be lucky. An old copy Puppy Linux had no problems, though.

Then, I unplugged the USB flash drive that I've almost always got in and booted Ubuntu, no problems. I plugged in and mounted the flash drive, no problems.

I got the same results from the 10.04 live CD. It this sees that stick at boot time, and it does the wrong thing with it, really wrong, like promoting it file system toll booth operator.


How use a preset WINE prefix during the installation on POL?

You can choose a pre-existing prefix (aka virtual drive) by clicking the Configure button, then clicking on the prefix in the left pane. After that, I think you pick the fifth tab and then click 'Run EXE in this virtual drive' and select your installer EXE (if possible).

However it's possible that it's not installing in 32-bit because you don't have 32-bit Wine? Try clicking Tools, then Manage Wine versions, then click a Wine version from Available Wine versions on the left (in the Wine versions (x86) tab), then clicking the > arrow.


Before suggesting a system to install, maybe you need to look at the information provided below.

  Apple changed its hardware architecture in the late 1990s, creating a
  split in its product lines between "OldWorld" and "NewWorld" PowerPCs.
  All G4s and later machines are NewWorld.1

For instructions covering installation of Ubuntu on Macs, see
PowerPC

1Source:PowerPC


You should use

# scp user@192.168.1.155:/home/user/ISOz/12.04\ LTS\ /Server/12.04\ 64\ LTS.iso

or

# scp "user@192.168.1.155:/home/user/ISOz/12.04 LTS /Server/12.04 64 LTS.iso"

The reason is a non-escaped space inside your path.

The second problem is because you specified source file (file1) but did not specify the target file. Probably, you have to type something like this:

# scp "user@192.168.1.155:/home/user/ISOz/12.04 LTS /Server/12.04 64 LTS.iso" "user@192.168.X.Y:/path/to/12.04 64 LTS.iso"


Re-enabling Grub 2 entry after having removed it with grub-customize

The update-grub script will create a new /boot/grub/grub.cfg file. This is the basic configuration file for the GRUB bootloader. However, updating the file is not enough, the relevant files need to be copied to /boot/grub and, depending on your system (probably not, in your case, since you're almost certainly using an EFI system), GRUB might also need to be installed to the master boot record. In any case, you need to also run grub-install. So, run these commands and then reboot:

sudo update-grub
sudo grub-install /dev/sda

Important: make sure to change /dev/sda to whichever device you have GRUB installed on. You probably have it on /dev/sda since that's the first hard drive.


Black screen after sleep with only mouse displaying on 16.04 LTS

I encountered this exact problem the other day after I installed graphics card on to my Ubuntu 16.04 system. I tried all of the things suggested in those other forum posts but in the end the only thing which actually solved the problem was a fresh install of the operating system...

I'm not sure if that would help you but it worked for me.


unknown (not allocated) partition at Ubuntu 14.04 installation

Try to boot Ubuntu from a Live disk and run Gparted.

Then unmount all the partitions and add the unknown space to your swap partition.

You can also check THIS if you have any confusion. That link provides in details what I have said.


External monitor stuck at 1024x768 resolution

Answer is work in progress.

In the sections of the xorg.conf, the area dealing with Monitor1 (second monitor) is where you would put the specifications for what that monitor supports.  It would look something similar to this:

Section "Monitor"
    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

You would change the Sync and Refresh to match your monitor.  I believe the only one needing change would be the VertRefresh from 75 to 85.

Then you would need a line supporting the resolution you want in the "Screen" section, so it would look something similar to this:

NOTE: The below section is from my setup, but the "Screen" section should be there with the Option metamodes line defining the resolution you desire.  I did a little tweaking to try to match your settings the best I could.

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "LVDS1: 1280x800 +0+0, VGA1: 1280x800 +800+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Canonical is now officially supporting Ubuntu Server 18.04.4 LTS and 19.10 on raspberry-pi 2,3 (32 bit and 64 bit) and 4 (32 bit and 64 bit). You can find the downloads available here:

https://ubuntu.com/download/raspberry-pi


Setting system wide proxy through bash script (Temporarily)

Type the following command to set proxy server in linux command line.

export http_proxy=http://1.2.3.4:3128/

Put a back tick character (`) before and after that command so that bash will execute the EXPORT command.

Note: 1.2.3.4 is your proxy server ip address and 3128 is the port for example.

To remove the variable value, use this command.

unset VARIABLE_NAME

Exmaple:

unset http_proxy


It is possible to set vino to allow connections without confirmation.  On the headless server, open a terminal and type the command

vino-preferences

Remove the check besides

  You must confirm each access to this machine

Note: the dialog box in this screen capture is NOT configured correctly for your case, I include it only to show what the dialog box looks like.


Unable to open x window from terminal for new users only

The simple solution seems to be to login as original user and do:

xhost +[yourhostname]


Youtube updates his anti-download security system quite offen. You should keep your youtube-dl up-to-date. The version Ubuntu 12.04 Precis installs by default is 2012.02.27 (two years old).

You can subscribe to the WebUpd8 PPA to get new releases when they're out (that is once or twice a week) :

sudo add-apt-repository ppa:nilarimogard/webupd8 -y
sudo apt-get update
sudo apt-get dist-upgrade

You'll also find the .deb package of the latest youtube-dl release on that PPA (here and search for youtube-dl). Install it with a GUI-tool like gdebi or Ubuntu Software Center, or with these command lines :

cd directory/where/you/downloaded/the/package
dpkg -i youtube-dl*
sudo apt-get install -f


Ubuntu 16.04 - No sound out of laptop or external monitor

pavucontrol is best for checking and adjusting Pulseaudio

try checking ALSA audio settings at same time

aplay -l

for list of ALSA playback devices

your onboard device will likely show 2 ALSA sub-devices for headphones and speakers

assuming onbard audio device is device number 0 (might be digital HDMI too)

alsamixer - c 0

check card and chip information for match to laptop specifications

use arrow keys to navigate left and right, up and down to change level
check headphone and speakers not muted (MM) use "M" key to turn on (OO)

Mute and set level to 0 for any unused playback controls,
digital/SPDIF playback may need to be muted/off for analog audio playback

check to right for auto-mute option, maybe hidden due to window width
setting auto-mute to disabled/off will have speakers remain on when headphones are plugged in

whilst making changes in alsamixer, check if pavucontrol registers any activity or change


How to kill all tmux sessions (or at least multiple sessions) from the CLI?

You can use tmux kill-server to cleanly and gracefully kill all tmux open sessions (and server).

If you are inside a tmux session you would like to keep, use tmux kill-session -a to close all other sessions.

To close a specific session, use tmux list-sessions to identify the session you want to kill, and then use tmux kill-session -t targetSession to kill that specific session.

Also you can grossly kill all tmux processes with pkill -f tmux.

Hope it helps.


It appears you may have tried to install grub on /dev/sda which is incorrect for UEFI systems. You should have installed it on /dev/sda1 which is most likely your EFI partition.
You still should be able to recover from this without re-installing. Check out the following link to get some idea on how to do this.
https://www.linux.com/training-tutorials/how-rescue-non-booting-grub-2-linux/
Without knowing the exact details of your installation it is not possible to provide you the detailed guidelines.
If you cannot find the linux boot images using the instructions of the above link you can use the Windows10 installation disk to restore the boot loader. If you do not have a Windows installation disk, go to Microsoft website, download the Win10 installation image, burn a DVD. Boot the DVD and select repair option.


Why does Ubuntu only detect one USB LAN adapters at a time?

It sounds like a bug with USB ID generation for the devices. I've seen this with external hard drives across multiple platforms(windows too). I never resolved it. I hope you get an answer.

A workaround is to use multiple vlans on the interface and add a switch to your config just to split out the vlans...it's ugly, but it gets you where you need to be.

USB Lan adapters with other chipsets might work.
If you try it and it does, then it was a)inadequate driver or b)usbid generation.
If you try it and it doesn't work, then it's a usbnet subsystem bug(probably).


How to solve the error "Unable to locate package libuhd003" for ubuntu 20.04?

I suppose that installation of libuhd-dev package will be enough:
sudo apt-get install libuhd-dev

Other installation candidates may be found here, like
sudo apt-get install libuhd3.15.0 uhd-host


How to automatically run a command at startup as root

I know this answers your problem (rather than the question), but if you want a module to be loaded at startup, simply add it to the file /etc/modules

e.g.

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
<drivername>   <--- **here**


To install Chrome, you must be running the 64-bit version of Ubuntu. Open a terminal (press Ctrl+Alt+T), and run the following:

sudo apt update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install -f -y
rm google-chrome-stable_current_amd64.deb
sudo apt update
google-chrome


My RAM and CPU's are free but my computer is so slow (Ubuntu 12.10)?

I would be interested to learn what you have in the System Log.  You can access the System Log by typing 'System Log' into the launcher.

You can also access the same log files from terminal with your favorite text editor by navigating to '/var/log/'...

You can try reproducing the problems that you are experiencing and check to see if any new entries are made to the syslog that would point at what your problem actually is.

running 'dmesg' from terminal and reviewing the output may also hint at the problem...


If you can't download the CD, you could buy from the Canonical Shop here: http://shop.canonical.com/product_info.php?products_id=976

We don't offer support to variations of Ubuntu, forks, unofficial variants and derivatives are not controlled or guided by Canonical Ltd. (list on Wikipedia) and generally have different goals in mind. You should ALWAYS download/buy Ubuntu from trusted sources, preferable directly from the makers. You should verify your CD, so it won't include defects or modifications.

Insert your Ubuntu CD into the drive of the computer that you want
to run/install Ubuntu onto.
Turn the computer on, or restart the computer.
While booting from the CD, hold any key to access the CD menu.
At the CD menu, choose 'Check CD for Defects' (if you never get to
the menu, try BootFromCD)

You can also order CD's from a third party at http://www.osdisc.com/cgi-bin/view.cgi/products/linux/ubuntu


Forticlient on ubuntu 1404 - tunnel running but no IP

I searched around and found an answer from a fedora user.

After connecting the vpn, with the tunnel running, give the following command in lxterminal:

mango@mango:~$ ifconfig ppp0 | grep inet

which returns

mango@mango:~$ inet addr:10.10.29.2  P-t-P:1.1.1.1  Mask:255.255.255.255

This indicates that the network adapter ppp0 is established and that I need to setup the default gateway to route tunnel traffic.

I then give the following command in lxterminal to setup the routing table.

mango@mango:~$ sudo route add default gw 10.10.29.2 ppp0

which returns as

mango@mango:~$

with no errors.

Now the tunnel is running and the routing table is established I can proceed to connect into the workplace server.

Thank you.


Setting up wireless internet on Ubuntu 12.04 - Errors with Broadcom STA wireless driver

It seems that Broadcom wireless strike again.

You said recently. What kernel does your installation use? Is it 3.8? If yes, install a 3.2 or 3.5 kernel series. There is a known issue with Broadcom STA wireless driver and the 3.8 kernel.

For 3.2:

sudo apt-get install linux-image-generic
sudo apt-get install linux-headers-generic

For 3.5:

sudo apt-get install linux-image-generic-lts-quantal
sudo apt-get install linux-headers-generic-lts-quantal

And then try the driver installation again, the chances are that it will succeed. You will need an active internet connection to perform these tasks (eg. wired).

Regards.


Should I run Ubuntu alongside Windows or in a virtual machine?

If the application you will be running is CPU and RAM intensive then it will be best for you to install Ubuntu natively rather than virtually. If you do decide to dual-boot and will only be using Ubuntu as a secondary OS there is no need to give it such a large partition unless you will be storing large files on the partition itself (but you said that your files were on an external HD). Ubuntu would be able to access the windows partition (NTFS) if you wanted to store things there anyway. Therefore you should give the Ubuntu partition ~20GB (to be on the safe side) and it will also require a swap partition that is the slighlty larger than the amount of RAM you have.

If you will only be using Ubuntu temporarily then you may want to look at Wubi which will simplify the installation and removal by doing it from within Windows. The downside of Wubi is that read and write speeds to the HD are slightly slower. This may not bother you.


How to setup PYTHONPATH for a snap package?

I modified alfanous-console to print sys.path and rebuild the snap:

['/snap/alfanous/x4/usr/bin',
 '/snap/alfanous/x4/usr/lib/python2.7',
 '/snap/alfanous/x4/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/snap/alfanous/x4/usr/lib/python2.7/lib-tk',
 '/snap/alfanous/x4/usr/lib/python2.7/lib-old',
 '/snap/alfanous/x4/usr/lib/python2.7/lib-dynload',
 '/snap/alfanous/x4/usr/lib/python2.7/dist-packages']

It seems clear the snap does not include site-packages to PYTHONPATH where my target package installs itself.

So I have to modify its install path
Or report this to snap team to add usr/lib/python2.7/site-packages

Related bug report #1670749 :
classic confinement requires manually setting PATH and PYTHONPATH

The suggested solution there didn't work:

apps:
  alfanous-gui:
    command: usr/bin/alfanous-desktop
    environment:
      PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH
      PYTHONPATH: $SNAP/usr/lib/python2.7/site-packages:$SNAP/usr/lib/python2.7/dist-packages:$PYTHONPATH
    #desktop: usr/share/applications/my-app.desktop
  alfanous-cli:
    command: usr/bin/alfanous-console
    environment:
      PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH
      PYTHONPATH: $SNAP/usr/lib/python2.7/site-packages:$SNAP/usr/lib/python2.7/dist-packages:$PYTHONPATH

Because of that weird path pointing to host /home folder

['/snap/alfanous/x7/usr/bin',
 '/snap/alfanous/x7/usr/lib/python2.7/site-packages',
 '/snap/alfanous/x7/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/site-packages',
 '/usr/lib/python2.7/dist-packages',
 '/home/sneetsher/Desktop/sandbox/alfanous-snap',
 '/snap/alfanous/x7/usr/lib/python2.7',
 '/snap/alfanous/x7/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/snap/alfanous/x7/usr/lib/python2.7/lib-tk',
 '/snap/alfanous/x7/usr/lib/python2.7/lib-old',
 '/snap/alfanous/x7/usr/lib/python2.7/lib-dynload']


Where to download Broadcom STA .deb file?

Ok I think I found it here

The site to download from is http://packages.ubuntu.com

  Installing the Broadcom STA (wl) driver
  Ubuntu: you’ll need to download the following
  packages (choose your Ubuntu release, architecture and mirror): dkms,
  patch,
  fakeroot
  and bcmwl-kernel-source.
  After you’ve downloaded the .deb files, use a USB flashdrive or some
  other means of file transfer to get them on the computer you want to
  install to. Then, just double-clicking each file should bring up
  Ubuntu Software Center and let you install it. Then just navigate
  to System > Administration > Additional Drivers (or Hardware
  Drivers for older releases) and activate the Broadcom STA driver.
  Check out this
  page for more information about online installation, but please
  note that the offline installation instructions are pretty much
  outdated for wl. Important note: if this fails,
  use Keryx (0.92, not
  1.0) to do an offline upgrade and install the bcmwl-kernel-source package. An up-to-date Keryx tutorial is on my to-do list.
  Other distributions: you can compile the STA driver
  yourself. 32-bit
  .tar.gz, 64-bit
  .tar.gz, readme.
  The readme explains how to compile the drivers pretty well, so I’m not
  going to do that here.

  source


You can always hold shift at the beginning of the booting process to access the GRUB menu. There should be other operating systems listed, if detected.

You can also try Boot-Repair to fix boot problems and to rewrite your GRUB entries:

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


FileZilla: Failed to retrieve directory listing

Simple port forwarding is not enough for FTP.
FTP has a control connection on usually port 21, which you successfully mapped to port 8181. But to transfer files or directory listings FTP opens another connection. There are two ways to open this connection:

Passive mode: This is what you use. In this case the FTP server allocates a random port on the server and tells the client IP and port using the response to the passive command. In you case this is "227 Entering Passive Mode (10,0,2,15,224,245)", which means the server waits at IP 10.0.2.15 port 57589. Since the client does not now that 10.0.2.15 is the server and since port 57589 on the server is not accessible from outside the connection will fail.
Active mode: Here the client opens a listener on a random port and informs the server about this port. The server will then try to connect from port 20 to this port. This might work if the Ubuntu 14.04 system inside the VirtualBox can access the host system (12.04). If this is possible depends on your setup.

Anyway, FTP is an ugly protocol if port forwardings or firewalls are involved. I would recommend to use sftp instead, which is support by FileZilla too and which only needs a SSH server on the other side (which you probably already have because you forward to port 22).


ubuntu 13.10 secondary monitor - doesn't redraw properly

I experienced exactly same behaviour on external monitor (connected through DVI or DisplayPort) when I booted Ubuntu 13.10 from USB stick.

I might have found workaround that solves redrawing problem.

My system: Lenovo T430 with 2 graphic cards (Integrated Intel and additional Nvidia).

Workaround: Go to the BIOS setup, in Graphics setup choose Discrete graphics. Redrawing problem occured only when there was Nvidia Optimus mode active.


Could not read from remote repository error.What to do?

You're trying to push via ssh. Missing pub key on the remote or missing private key in the ~/.ssh dir will result in an error. Try using the https protocol. git remote add origin https://github.com/{username}/{repo}.git, then push as usual. Good luck! :)


You should be able to create shortcuts that call nmcli to bring up connections:

nmcli con up id "name of your connection"

Here's the result when I run this in a terminal on my system:

% nmcli con up id "PPTP VPN Testing"
Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2
state: VPN connecting (3)
state: VPN connecting (getting IP configuration) (4)
Connection activated


Installing Ubuntu 16.04 LTS: How to install ODBC?

Download directly from dev.mysql.com: https://dev.mysql.com/downloads/connector/odbc/

Select Ubuntu 16.04 64 bit or 32 bit (probably 64 bit), download the TAR ball, then copy the file libmyodbc5a.so to /usr/lib/x86_64-linux-gnu/odbc/

then, create /etc/odbcinst.ini

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5a.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
FileUsage = 1

and /etc/odbc.ini

[my-connector]
Description           = MySQL connection to  database
Driver                = MySQL
Database              = mydb
Server                = localhost
User             = dbuser
Password              = dbpass
Port                  = 3306
Socket                = /var/run/mysqld/mysqld.sock

Note that the username tag is User (and not username as seen in some examples) and the socket is under /var/run and not under /var/lib

echo "select 1" | isql -v my-connector

then worked for me


That [1292] after the name is the Process ID, or PID. If it's a service that is automatically starting at boot up, you will need to use systemctl:

systemctl stop x11vnc
systemctl disable x11vnc

I'm not sure what the actual service name is for x11vnc so you'll likely need to type x or x11 and tab to see what autocompletes.


Don't share folders through Nautilus any more...  Use the samba server itself and its configuration tools to share anything.

Go to the software center, click on the search and type "samba GUI" and click on the pretty icon that you don't have to pay for, then click install and use that to share drives...


How do I keep my laptop from hibernating when it is booting Ubuntu with the lid closed?

Open the Dash and type Energy. Select the Energy icon. There's an option on that window to configure what happens when the lid is closed.


I also have an ATI Card. I found that it you install / update the driver and then run the following command in terminal:

sudo update-grub

After that has run then shutdown using:

sudo init0

Then restart your computer and try to shutdown the normal way.


which is the different between openstack-charmers and openstack-charmers-next?

openstack-charmers is the namespace for stable OpenStack charms and bundles (see their release policy).

openstack-charmers-next on the other hand is the namespace for development charms and bundles.


Specify which O.S. to boot into during installation

You can do this with grub-customiser

Instructions to install:

Open the terminal and type in sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update && sudo apt-get install grub-customizer
Open it from your launcher or by typing in grub-customizer

As you can see, you can change the default entry in the general settings tab


Why isn't simple use of grep not coming up with any results?

First, you seem to be misunderstanding what the -h flag does.

-h will suppress the name(s) of the files passed on the command line (i.e. mp3sCIR.txt - although when only a single file is given, the name is not printed by default) - it won't remove anything from the names of the files inside the file.

Second, you are confusing shell patterns (aka 'globs') and regular expressions - grep uses regex syntax, so to match filenames with the .mp3 extension you'd need1

grep ".*\.mp3" mp3sCIR.txt

(which should work the same with or without the -E, since the basic and extended forms are identical).

To remove the leading pathname components (i.e. what you were attemtping to do with -h) you could use

grep -o "[^/]*\.mp3"  mp3sCIR.txt

to print only the matching portion not including path separators, or with grep in perl compatible (PCRE) mode

grep -Po ".*/\K.*\.mp3" mp3sCIR.txt

For future reference, you could have saved the names without leading path components by using find's -printf '%f\n' output format.

[1] Actually it seems like while BRE treats a bare * at the start of a pattern as literal, ERE (i.e. egrep/grep -E) appears to treat it as a quantifier for an empty expression ("zero or more instances of nothing"); hence grep -E "*.mp3" does match entries with the .mp3 suffix - but not for the reason you'd probably think.


First of all you should stop using this harddrive alltogether. While booting into Windows should be relatively safe, you should better not have any writing access to this drive.

Next get your hands on a Live-CD, for example the disk that you used to install Ubuntu.
Boot into this livesystem, and fire up testdisk, to see, if it finds your missing partition:

sudo apt-get install testdisk
sudo testdisk

The next steps are depending on your exact setup, and what is left of your partition.
You can find more information on the testdisk homepage, and possibly in this thread


Installing Ubuntu when multiple Windows 7 partitions exist, and permissions

0 Backup is ALWAYS good

1 You must install Ubuntu from a bootable device. Make a LiveCD, LiveDVD or LiveUSB using the .ISO of Ubuntu you downloaded.  http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows explains how to download the Windows utility to make a LiveUSB, and how to use it, step by step, to make a LiveUSB.

2 Yes, leave your data on D: which you can then mount in Ubuntu. However, unless you wish to completely eliminate Windows, I would instead let Ubuntu's install routine rearrange the drives so it could make space for Ubuntu in its own partitions, so you can continue using Windows while learning Ubuntu.

Normally, there are two major partitions for Linux, / (aka 'root') where everything goes except for the second 'swap' partition, which should be at least the size of the RAM in the machine, perhaps larger.

3 When you boot with Ubuntu, you can open and save files in your NTFS partition D: with no problem.  Edit /etc/fstab to add lines like:

  /dev/sda2 /media/windata ntfs-3g  rw,nodev,noexec,auto,nouser,async,locale=en_US.utf8,uid=1000,gid=1000,umask=0002 0 0

  /media/windata    /home/me/windata    ntfs-3g rbind,user,rw,nodev,noexec,auto,async,uid=1000,gid=1000,umask=0002 0 0


The '<' symbol automatically starts typing repeatedly everytime in linux

This seems very likely to be a "stuck" key, and if not due to foreign material holding a key, likely indicates a hardware failure.  Since it's a laptop, it's not as simple as unplugging the keyboard and trying another one, but if the machine isn't too old, it's possible to get a replacement keyboard (either install yourself or pay someone to install it).

Before spending money, however, try booting from a Live medium, just to verify that it's hardware and not a bizarre glitch in your keyboard driver.  That's very unlikely, but all it costs to check is the time to burn a flash drive with an Ubuntu ISO.


Looking a bit further there is this bug report #796752 on Launchpad which seems to lay the blame on the transition to Gnome 3. Looks like it might be available in Precise.


How to disable mouse hover at top left corner on 'Activities' action

You need gnome for these instructions:

The gnome-shell Activities corner hot-spot can disabled by installing an extesnion called "No Topleft Hot Corner." Go to https://extensions.gnome.org/extension/118/no-topleft-hot-corner/ . To install it, you just click "on" at the top of the page next to the name of the extension.

An earlier answer states that this can be accomplished "by editing some code - fortunately this doesn't need recompilation...

To do this:

gksudo gedit /usr/share/gnome-shell/js/ui/panel.js

Scroll down to this section in the file and comment out the line highlighted i.e. put //your_initials in fron t of this._hotCorner...:

Save, logout and login."


I worked around this issue in iPXE by following the advice of "Woodrow Shen" over at the Launchpad bug tracker.

Basically I adapted our old entry for ubuntu 16.04.3:

:deployUbuntu-x64-16.04.3
set server_ip 123.123.123.123
set nfs_path /opt/nfs-exports/ubuntu-x64-16.04.3
kernel nfs://${server_ip}${nfs_path}/casper/vmlinuz.efi || read void
initrd nfs://${server_ip}${nfs_path}/casper/initrd.lz || read void
imgargs vmlinuz.efi initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=${server_ip}:${nfs_path} ip=dhcp splash quiet -- || read void
boot || read void

To look like this for ubuntu 18.04:

:deployUbuntu-x64-18.04
set server_ip 123.123.123.123
set nfs_path /opt/nfs-exports/ubuntu-x64-18.04
kernel nfs://${server_ip}${nfs_path}/casper/vmlinuz || read void
initrd nfs://${server_ip}${nfs_path}/casper/initrd.lz || read void
imgargs vmlinuz initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=${server_ip}:${nfs_path} ip=dhcp splash quiet toram -- || read void
boot || read void

note the following changes:

rename vmlinuz.efi to be vmlinux on lines 4 and 6
add the toram option to line 6
obviously change the nfs_path to match the location of the new extract ISO

note that as pointed out on Launchpad, this toram option requires additional RAM.  In my testing, i needed to ensure my virtual machines had 4GB of RAM allocated

Note that this also works for both our EFI and legacy BIOS systems.


Is there deb packages that display license agreement?

If I remember correctly, the msttcorefonts package asks to accept an EULA.


Cannot boot, laptop screen doesn't work, may have broken grub

That's weird you don't see bios/grub menu's on the monitor.  Do you have the laptop lid open? Also, it would help if we knew what laptop model it was.  Usually you can boot to a live cd even in the state that it's in.  Just plug in a monitor with the computer lid closed(but open just enough so you can turn it on) so you get video so you can a least know what your doing, then boot to Ubuntu live cd.  I don't really know what to do from there, hope this might help you.

EDIT:

Try this link may help you:
  http://ubuntu.aspcode.net/view/635400140124705175542464/cant-boot-up-ubuntu-after-changing-grub-file-with-nomodeset

EDIT:

Ok so it looks like you might have to press a combination of keys to get to see the bios.  Try doing FN and one of the F keys(usually the one for the display has a little monitor on the key).  Also, try locating the lock magnet on your laptop lid and put a magnet to trick it into thinking it's closed, but not really(so you'll have access to the keyboard, mouse, power button).


Qemu Snappy 15.04: How to tune sysctl.conf?

Not sure what you mean by "OLD" ... :)

ubuntu@localhost:~$ vi -version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 18 2016 12:05:46)

7.4  is the latest release and the specific version we use was just recently rebuilt. In case you mean the behavior (i.e. no cursor key support in edit mode) you can switch to new style behavior by creating a .vimrc file with:

set nocompatible

I doubt a nano snap would be a good idea unless you run it completely unconfined (since it would never be able to actually write files outside of its rw-snap dir), you can use the "classic dimension" [1] to actually use apt to install and use such things.

Changing /etc/sysctl.conf is definitely a missing feature, it should should actually be manageable. I filed https://bugs.launchpad.net/snappy/+bug/1552679 for this.

(Note that I'm talking about xenial here, 15.04 images will go out of support with the 16.04 release, they will not see changes or new features.)

[1]

sudo snappy enable-classic; snappy shell classic


The directory /etc/ld.so.conf.d/ should already exist: either use an editor to create the file

sudo nano /etc/ld.so.conf.d/freerdp.conf

and then enter the text /usr/local/lib/freerdp, save (Ctrl+O) and close (Ctrl+X); or use the command

echo '/usr/local/lib/freerdp' | sudo tee /etc/ld.so.conf.d/freerdp.conf


Ubuntu Server 10.04 (Lucid Lynx) reaches End of Life on April 30, 2015, a week after the date that your question was posted. Take this opportunity to download and install Ubuntu Server 14.04, which will be supported by security and maintenance updates until April, 2019.
Ubuntu Server 14.04 cannot be installed on a potato, but it does support a wide variety of hardware because of its low systems requirements.
Ubuntu Server 14.04 systems requirements

Standard installation

Ubuntu 14.04 Server Edition supports 3 major architectures: Intel x86, AMD64 and ARM.
1 GHz processor
512 MB of system memory (RAM)
1 GB of disk space (base system)
1.75 GB of disk space (all tasks installed)
Graphics card and monitor capable of 640x480

Minimal installation

Ubuntu 14.04 Server Edition supports 3 major architectures: Intel x86, AMD64 and ARM.
300 MHz processor
256 MB of system memory (RAM) 64-bit, 192 MB RAM 32-bit
700 MB of disk space (base system)
1.4 GB of disk space (all tasks installed)
Graphics card and monitor capable of 640x480


Although rare, Linux malware & viruses do exist. The strict layered structure of Linux makes it however less vulnarable, but not immune. It can also not be excluded that you make a mistake, and authorize a malicious piece of software to do harmfull things.

In practice however, you will mainly use a virusscanner to protect your Windows partners. ClamAV does scan for Windows viruses as well.


polkit: disable all users except those in group wheel?

I would try the following .pkla
[First disable all users]
Identity=unix-user:*
Action=*
ResultActive=no
ResultInactive=no
ResultAny=no

[Then enable wheel group]
Identity=unix-group:wheel
Action=*
ResultActive=auth_admin
ResultInactive=no
ResultAny=no

in conjunction with a modification of the AdminIdentities, configured in a file under /etc/polkit-1/localauthority.conf.d/.
I have the following two files
50-localauthority.conf
[Configuration]
AdminIdentities=unix-user:0

and
51-ubuntu-admin.conf
[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

The second one override the first, and force to use sudo (and the old admin) group. Remove the second file and you are leaved with a root password request.


It is perfectly okay to remove ubuntu-desktop package if you want to remove Unity and Unity-2D. Because ubuntu-desktop is a meta package and used to pull the standard packages in an Ubuntu Desktop installation. Since you are removing a dependency of Ubuntu-Desktop package, it will be removed too.

But, you don't need to worry. You won't lose anything by removing it. You might take a look at this question.

For the specific query:

  How can I remove Unity-2D without removing Ubuntu-Desktop?

You just cannot. There is no way to have Ubuntu-Desktop package with Unity-2D removed without being please with a broken package system.

Why removing gnome-core does not remove all of it's dependencies?


HTTP 2 not working in Ubuntu 16.04 with Apache2: How can I debug this?

Problem

Browsing the /var/log/apache2/error.log archive, contains something like this:

  [http2:warn] [pid 3220] AH10034: The mpm modum module (prefork.c) is
  not supported by mod_http2. The mpm determines how things are
  processed in your server. HTTP/2 has more demands in this regard and
  the currently selected mpm will just not do. This is an advisory
  warning. Your server will continue to work, but the HTTP/2 protocol
  will be will be inactive.

Prerequisits

Run at terminal command for get your own variables:

Ubuntu version: lsb_release -a
Apache version: apache2 -v
PHP version   : php -v

This question is for:

Ubuntu 16.04
Apache 2.4.29
PHP 7.0.22 (CLI)

This answer is exactly for:

Ubuntu 16.04.3 LTS
Apache/2.4.29 (Ubuntu)
PHP 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Dec 14 2017 15:37:13)

The PHP 7.1.12 was built following the steps given at (see question): How to enable HTTP/2 support in Apache, last updated 5 nov 2017.

Disclaimer

Do it at your own risk; do not use this anwser on any production server. You are welcome ;-) .

Answer

Cite, same tutorial named before:

  Apache 2.4.27, HTTP/2 not supported in prefork

We must change mode prefork to mode event or worker, but WARNING you will need to use PHP as FastCGI.

Step by step

Step one

First add Ondřej Surý's repository (please note UTF8 characters) to your Ubuntu, this instructions are taken from this DigitalOcean's tutorial. You will need root rights, here we will use sudo command:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update

Step two

sudo apt-get install php7.1

Yeah, right, no kidding. After that, next step.

Step three

sudo apachectl stop
sudo apt-get install php7.1-fpm
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.1-fpm
sudo a2dismod php7.1
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo apachectl start

Troubleshotting

If you have some problem with

sudo a2dismod php7.1

just try this:

sudo a2dismod php7.0

(we had this problem too: sudo a2dismod php7.1 )

Possible improvement

If you want use the latest pack:

sudo apt-get install php7.2-fpm

(We installed it, see the picture)

Verifying a well done job

See the next picture for our result and visit https://http2.pro for your own test (set ufw first!)

HTTP2.Pro check

Conclusion

A very new technology is comming! See other future protocols here!

Thanks for visit AskUbuntu!


Error while updating Ubuntu 16.04 LTS on VMware

About the error: looks like Ubuntu was already looking automatically for updates (and locking the packages database) so your manual check for updates failed to lock the packages database. Your option here is to wait some time (1 minute or so should be enough) and re-try the manual command.

About the Ubuntu performance: 2 GB of RAM should be ok for 32 bits but not ok for 64 bits. Also, Ubuntu's Unity requires 3D features from the graphic card - the emulated vmware graphic card might not provide the necessary speed for 3D stuff (and especially if no specific vmware video driver is used). Your best option here is to make sure the vmware video driver is installed & used - there's a vmware driver in the xserver-xorg-video-vmware package or you could install the vmware tools.


The script tells you that host launchpad.net, on which the PPA is located, is unreachable. Check if you can open it with your browser, fix your network errors and try again.


Java is no longer supported by Google Chrome as of chrome version 42. Some versions below 42 also did not include Java. See This for more information. Chrome stopped including all NPAPI plugins in version 45.


How can I make my touchpad scroll either vertically or horizontally, but not both?

Recently libinput gained a feature to lock your scroll-movement either vertically or horizontally upon detecting that you're trying to scroll that way. The lock then gets unlocked if it detects deliberate diagonal movement, so you can e.g. move around in graphics editors, etc.

Here's a link to discussion. It's already been merged in git, and, if I correctly understand, will be part of libinput 1.12 release. So if you wanna try it, I encourage you to install libinput-1.12 (unreleased as of writing the answer) or later.


Running this should purge the remnants of Virtualbox:
sudo apt purge unity-scope-virtualbox virtualbox-6.1


What is this "forbidden" icon in my systray?

The "forbidden" icon indicates that one of the panel indicator's (for example, Klipper) can't be loaded or is no longer functioning, possibly because it has been discontinued in Ubuntu 16.10.

If it hasn't been discontinued in Ubuntu 16.10, showing your system's process list by running ps -ef | grep indicator- will provide more information about which process is causing it. This will show the panel indicators that have the string indicator- in their names as the panel indicators from the default Ubuntu repositories do. To show all of the process list run ps -ef.


Can't boot from my USB drive with Ubuntu on it?

Some things to do after downloading the iso:

Did you md5sum check the downloaded iso?  See

https://help.ubuntu.com/community/HowToMD5SUM
Check the number
against the listing in the link for your release listed at
http://releases.ubuntu.com under the MD5SUMS link.
If using a     CD/DVD, did you burn the disc as slowly as possible?
See
https://help.ubuntu.com/community/BurningIsoHowto
Did you select the media check before trying to install?
https://help.ubuntu.com/community/Installation/CDIntegrityCheck
Did you ever do a "memory check" (another live-media menu choice) on your PC?

Doing the above can save you a lot of time struggling with a bad install media.


You can try this command to have a comprehensive output of the network state by typing

lspci -nn | egrep '0200|0280'

if it is something that looks like this :

03:00.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)
0b:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)

Then remove this package

sudo apt-get remove --purge bcmwl-kernel-source

and install instead

sudo apt-get install linux-firmware-nonfree
sudo modprobe b43

Disconnect the ethernet cable and then boot again and you should have your connection fixed.

Good luck


Try to download the Tor Bundle on the Tor Project site. Extract the archive in any directory, the enter it by terminal and type ./start-tor-browser


External monitor is black with only cursor visible and responsive -> connected according to xrandr

I had a similar issue with Ubuntu 18.04 on my Dell precision 7550.
What worked for me was:

Turn Secure boot off.

Run (thanks Pablo):
sudo ubuntu-drivers install

Restart.


This is a known issue with Ansible 2.9 and 2.10. You can't cleanly downgrade directly, you'll have to uninstall the ansible-base package in addition to uninstalling 2.10 and installing an older ansible version.


1. Note down all the cron jobs for all users including root, for example:

To list the root's crontab

sudo crontab -l

To list your crontab

crontab -l

2. Delete the crontab complete for all users using the following

To delete the root's crontab

sudo crontab -r

To delete your crontab

crontab -r

3. Restart the system

4. Place your jobs back into the cron (Preferably the root's cron) either by creating a text file then pointing cron to that file or manually.

To set up manually

sudo crontab -e

To point cron to a text file

sudo crontab <filename>

Logically, preferably entered in the order of occurance. For example if you have a job that runs before another (in time) place that above.

Remember that the cron file or crontab must have entries in the following format

m h dom mon dow full path command

For example shutdown at 2:30PM ever day of week except weekends would be

30 14 * * 2,3,4,5,6 /sbin/shutdown

Another example run a script file (test.sh - located in /usr/local/myScripts folder) every monday at 2:00AM would be

0 2 * * 2 /usr/local/myScripts/test.sh

I had the same problem with cron, once and I remember reading in a forum that we need to delete the user's cron and restart the system then recreate it.


Broken package udpating Ubuntu 18.04 GL dispatch library

I just had this issue, run

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_amd64.deb
sudo apt -f install


On a Ubuntu system, doing

sudo update-grub

would probably be enough. This command lists bootable disks on the system, guesses the OS installed on it, and shows you the list at boot time so you can choose which OS to boot.

However, this command doesn't exist in OpenSuse. The nearest OpenSuse equivalent is

grub2-mkconfig -o /boot/grub2/grub.cfg

and this has been shown to work on the OP's system.


Neither .bashrc or .profile are being sourced when I open up a graphical terminal

The problem here turned out to be that the user account's configured login shell was not bash, and therefore it did not automatically read and run commands from the files bash uses. Specifically, no login shell was configured, so the default of /bin/sh was used:

  OK so how exactly are you creating the users? it looks like no login shell is being defined for them (possibly making terminals default to /bin/sh?)

– steeldriver 2 days ago

Since that was unintended, the solution, provided by steeldriver in a comment, was to change the shell to bash with chsh:

  It would be safer to use chsh to set the desired shell. BTW what version of Ubuntu is the remote server running?

– steeldriver 2 days ago

The system turned out to be running Ubuntu 16.04, and like on other Ubuntu releases, bash was available.

One way to use the chsh command is like this, with the full path of the desired login shell entered in place of shell:

chsh -s shell

So, to change one's shell to (or back to) bash:

chsh -s /bin/bash

Another way is to run chsh without arguments, in which it case it runs interactively and the user must enter the name of the shell wanted, or simply press Enter for the default.

In both usages, chsh prompts for the user's password before continuing. This is the user's own password (whether or not the user has the ability to run commands as root with sudo). For example, in the interactive usage:

ek@Kip:~$ chsh
Password:
Changing the login shell for ek
Enter the new value, or press ENTER for the default
        Login Shell [/bin/bash]:

If you see this, it means the password was entered wrongly:

chsh: PAM: Authentication failure

The shell should be provided as an absolute path (starting with /). Only shells listed the file /etc/shells can be chosen. One way to display the contents of that file is to run cat /etc/shells. It contents depend on which shells have been installed (and may also have been manually modified by system administrators).

For more information about how different shells use different startup files, see Where to define aliases: .cshrc or .bashrc?


As said in the post about ubuntu 14.04 read INSTALL file carefully. E.g.:

    2 - Set the SRILM variable in the top-level Makefile to point to this
    top-level directory (an absolute path).


Why I can't install packages? apt-get says that I'm helding broken packages

Sounds like you have a broken partial downloaded, try:

sudo apt-get clean

and then do the

sudo apt-get update && sudo apt-get upgrade

and try to install the package again.


Windows becoming unresposive on upgrade to 13.10 from 13.04

In a case like this I would recommend that you do a fresh install of 13.10. Somewhere along the way it seems that the upgrade screwed up your system.

Before doing a clean install I would download and test everything from a LiveCD:(http://www.ubuntu.com/download/desktop/try-ubuntu-before-you-install)

If the same issues appear when testing then you may have some driver problems. From the limited information you have provided it would be hard to diagnose any further.


How can I install a Gnome Applet without privileges

AFAICS you cannot install stackapplet without superuser privilege because every gnome applet has Bonobo control file (GNOME_AppletName.server) which is in /usr/lib/bonobo/server You Must have bonobo control file to use applet and you cannot edit /usr/lib/bonobo folder unless you have sudo privilege. There is also bonobo-activation-config file in /etc/ which i believe contains path for the bonovo server files. If you can add your custom path then it may help but again you need sudo to edit that file.

But i cannot say its impossible :) there might be some way which i don't know.


How to put a webcam recording and a desktop recording side by side with ffmpeg

ffmpeg \
-f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 \
-f x11grab -framerate 100 -video_size 1600x900 -i :0.0 \
-filter_complex "[0:v]pad=iw:900:0:(oh-ih)/2[left];[left][1:v]hstack" \
output

Use -framerate instead of -r and -video_size instead of -s for x11grab.
The hstack filter will use the frame rate of the first input, so you may add the fps filter after the pad filter if desired.
-framerate 100 seems high and may not be sustainable.


Dual Graphic Card Setup (Integrated + Discrete) on Desktop

Nvidia uses optimus in Windows to perform discrete and integrated GPU switching. There is some effort to bring this in to Linux as well, such as project bumblebee. However, it seems like it is outdated. I personally just install the proprietary Nvidia driver and forget this switching as it seems not fully supported, especially for more recent GPU.

Check this out for more info: https://help.ubuntu.com/community/HybridGraphics

Sorry, I can't help much beyond this answer, I also just started with Linux.


I had the same problem after fresh install of Ubuntu 11.10. The problem was solved after I deleted my custom fonts.

I keep my fonts in "/user/share/fonts/truetype/fonts from web". When I copied my "old" fonts into this "fonts from web" folder, Firefox went blank. Took me about two days though to realise the problem. As soon as I deleted custom folder, Firefox is back. Some of the old font must have been coliding. Have to investigate more.


How to install old AMD Catalyst 12.4 drivers on Ubuntu 12.10?

I haven't tried it yet but I found this PPA.

The latest fglrx that supports pre-HD5000 GPUs, is Catalyst 12.6 Legacy.

But it doesn't support Ubuntu 12.10 from what I have heard. I am also concerned about this as I want to update to Quantal but fgrlx is a must have for me. I still don't have Quantal so I could not test it. Test it at your own risk.


Grub menu not showing after exiting BIOS

Your problem is similar to many others that have been reported here. See:

Ubuntu 14.04 not booting before Windows 8.1
Ubuntu 13.04 on UEFI system with Windows Boot Manager as the main loader
Can't boot into Ubuntu after Windows 8.1 upgrade, boot-repair doesn't fix it

Basically, you should be able to fix the problem using bcdedit in Windows, by running Boot Repair from a Linux emergency disk, or by installing rEFInd. (Those are just three relatively easy fixes; there are literally dozens of other ways to fix the problem.)


How can i play google playstore games on ubuntu 14.04?

"Google Play Downloader" sounds to me like something that just grabs the APKs, not something that allows you to run them. Seeing as you just say "it says" and no what "it" is, that's the most I can assume.

If you want to run Android apps on Ubuntu, you'll need an emulator. Something like Genymotion.

http://techapple.net/2014/05/5-best-android-emulators-linux-run-android-apps-linux-ubuntulinuxmintfedoraarchlinuxopensusemageiacentos-etc/


Cannot login to newly installed Ubuntu Server in Virtualbox

Ok - I'm not sure exactly how, but on my 5th attempt, I got it working and the problem automagically went away.

I think it had to do with VBoxLinuxAddtions... see this thread, which gave me a bit of guidance:

First, you need to install VirtualBox guest extensions:

In the VirtualBox menu, Devices -> "Install Guest Additions"
Then, mount them: Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image
Select VBoxGuestAdditions.iso

Open a terminal (Applications -> Accessories -> Terminal)

sudo apt-get install linux-headers-generic
mount /media/cdrom (If you get an error that it's already mounted, ignore the error)
sudo /media/cdrom/VBoxLinuxAdditions-x86.run
(wait)
Reboot the virtual machine.


How to install Ralink 3290 Wireless Card Driver "correctly"?

You need to use "sudo" with the modprobe command, like this:

sudo modprobe rt3290sta

...then enter your admin password (your password)

Cheers, Al


Configure Linux Text mode Size (Rows and Columns)

The dataflex KB should provide the instructions that you require. If they don't work it's a support issue with DataAccess. TERMINFO must be set in addition to ROWS and COLS.


cross compiling for m68000 (embedded system)

http://www.doc.ic.ac.uk/~phjk/CompilersCourse/SampleCode/68000/HowToCompileTo68k.html

In this link, I saw that gcc compiler for 68k needs to be called like "gcc-68k"


How to remove "Europol" malware that infected Firefox in 13.04

I had this problem, re set Firefox did not work, Firefox was locked,
 could still access Ubuntu software centre though.

Removed Firefox via Ubuntu software centre ,Closed down, rebooted went back to software centre and reinstalled Firefox All Ok.


Ubuntu Shutdown While the Machine (Laptop) Fan is Still Running

It seems I solved this problem by doing the following:

Updated the Ubuntu kernel
Updated the BIOS
Installed the latest graphics card driver
Go to /etc/default/grub, and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" instead of "nomodeset"

Now, everytime I want to turn off my PC, I restart it and upon restart, I run the command "sudo shutdown -H now", then press the power button.
This looks like solving the problem, since I have been able to shut down my machine smoothly for the past 1 month.


Dependency Is not satisfiable : libstdc++6 (>=4.8.0)

The version of libstdc++6 in Ubuntu 12.04 is 4.6.3. In order to get version at least 4.8.0, you will need to upgrade to at least 14.04, which has version 4.8.4.

Since libstdc++6 is an essential system package, trying to install the 14.04 version manually, or to upgrade it by some other "hacky" method, will probably result in a broken system.


How to change the default programs that are associated with every new user that is created?


I was able to print to a RFG SP1210N using the Generic PCL 5 driver.


The error tells you that you lack the header file event.h, it's probably part of libevent.

To be able to compile a program you will need to install all it's dependencies first (including headers, the -dev packages). In the tmux webpage they say that it depends on libevent and ncurses. So this command will likely install all that you need (not tested):

sudo apt-get install libevent-1.4 libevent-dev libncurses5-dev

But if you need to ask this you shouldn't probably be compiling things from source, unless you are doing it to learn, just for fun or just having a terrible day ;).


How to set up a loop device at boot time?

There are at least three "appropriate" ways to do startup things in Ubuntu (presuming you don't merely want to mount it), listed here in decreasing order of preference:

/etc/init/*.conf (Upstart)
/etc/init.d/* (sysvinit)
/etc/rc.local (runlevel change script)

There's also to possibility of using udev rules, but it will be convoluted.  I recommend against it.  The sysvinit script is overkill for such a small thing, so I'll focus on the other two options.  The runlevel change script is simplest (though least preferred), so I'll start there.

The /etc/rc.local file is simply executed by the /etc/init.d/rc.local sysvinit script, which is (by default) executed last upon switching to any normal "on" runlevel (e.g. when you boot normally, but not when you shut down or go to recovery mode).  To implement setting up the boot device, just add this at the end of /etc/rc.local, assuming that your file is called /srv/diskimage and you wish to use /dev/loop0 as the loop device:

losetup /dev/loop0 /srv/diskimage

That's really all there is to it.  Of course, replace the filenames with whatever works best on your setup.

If you want to be a bit more specific about it, you can create an Upstart job for it that sets it up once the filesystem holding it has been mounted.  An example would be the following, assuming that /srv was the mount point containing your diskimage file:

description     "Setup loop devices after filesystems are mounted"

start on mounted MOUNTPOINT=/srv
task
exec losetup /dev/loop0 /srv/diskimage

This should be simple enough to follow conceptually: The first line is just a comment for human readers, and it's instructions to Upstart to wait until the /srv filesystem is mounted, execute the losetup process, and consider yourself finished when the process exits successfully (a "task", as opposed to a service that is persistent).  Just put those contents in a file matching /etc/init/*.conf.  I would choose /etc/init/losetup.conf, myself.

The advantages of Upstart jobs over /etc/rc.local for such a simple thing are small but important.  First, /etc/rc.local is deprecated, and its use as just a "messy sandbox to get things done" is frowned upon by pretty much everyone these days.  Among other reasons for frowning upon its use, some programs that do use that file will simply overwrite the contents, and it's difficult to reconcile different scripts that need to go into the same file.  Second, Upstart actually handles the dependency checking for you (making sure the filesystem is mounted first), so if there's a problem mounting the filesystem it won't try to set up the loop device....but will once you've resolved and mounted it.  Third, Upstart is vastly more flexible: you can, for instance, have it be smart enough to find an unused loop device, and "emit" that loop device for use in other upstart jobs, similar to how we used the "MOUNTPOINT" variable in this example above.


Ubuntu Server 14.04: Display stdout from startup scripts after login

One way to do it would be to run a script at startup to execute your program in a screen session. That way all you have to do is attach to the screen after login to view the status.


This software is kind of old, and may not work on newer Ubuntu installations.

Open Software & Updates, Additional Software tab. Find the repository definition that contains paolorotolo and change the OS version from xenial to vivid. Reload the software database when exiting. You should be able to install droidcam now.


How to update Node from 6.4.0 to 6.5.0 via apt?

You might consider adding the node sources ppa to your set up. There are instructions here.

You could also try nave which is a non-apt way managing the versions of node on your system. Running sudo nave usemain 6.5.0 will install 6.5.0 to your system folders though I'd recommend using the nave.sh sub-shell approach to access different versions of node without doing central installs.


Openstack-autopilot and enabling the console

You'll want to access the underlying juju environment as described in your previous question: Add node to existing landscape openstack

From there you'll want to run the following:

juju set nova-cloud-controller "console-access-protocol=novnc"

That'll enable the console via Horizon dashboard.


How do I install Skype on Ubuntu 13.04? - solution found?

Here is the complete solution:

http://www.dedoimedo.com/computers/ubuntu-ringtail-skype.html

Remember, that you will need to istall all the needed i386 libs.


I had a PC with roughly these specs some time ago... the Ubuntu full version does not work well on it. At all.

Install Xubuntu - it work run smoothly and without any problems, hopefully ;)


In my case the solution was disabling "Automatic Brightness" in the Power options of the settings menu.


Ubuntu live usb with extra storage partition

I have been using this http://www.linuxliveusb.com/ for quite some time and it does exactly what you are requesting.  The only problem with it is, it is Windows software.  But I have been using it for years and you can continue to use it as a flash drive to store data.


root@mickey:/#su goofy && ssh goofy.com -- why does this fail?

Because su  goofy opens a new session, but the && ssh goofy.com will go to the original. So the && ssh goofy.com command is executed under the original, not su-ed user.

Try in one line like this: sudo -u goofy -H sh -c "ssh goofy.com"


try to format the USB Flash disk to NTFS file system, it works for me:

WebUpd8: Create bootable Windows7 USB drive


Does WubiUEFI, a fork of Wubi, work on legacy BIOS?

Yes, it does. If Windows is not installed in UEFI mode, Wubiuefi uses the
boot method of the original Wubi. see "Does Wubiuefi work also without UEFI ?"

i.e. It depends on the installation mode of Windows. If your system is Legacy BIOS only, Windows is definitively installed in Legacy BIOS mode (non UEFI mode).


rando-cli generate 1

Above is an RCP command and the RCP command doesn't output anything, it is the RPC server that displays the output. So I had to suppress the error messages from the daemon not the command.
randod > /dev/null 2>&1


digikam - error while loading shared libraries: libcudart.so.8.0

If you have not forced/bad-removed cuda package and you cannot start digikam, then this is a bug!
And I suggest you to open an issue in the bug tracker.

If digikam does not start because it requires that lib, some package (digikam itself or any of its dependencies) is missing lib.

If you want digikam without that dependency, you can try to compile it by yourself disabling (if it can be!) the feature which requires cuda.


Reduce touchpad touch sensitivity or disable tap-to-click unless key is pressed

In the Software Center there is an application called Pointing Devices sudo apt-get install gpointing-device-settings       That should have everything you need.


Ubuntu on Macbook Pro trackpad not smooth

No accepted answer on the following post, and it seems to be mostly speculative, however referring to a similar, but-not-same post, there is a Github repository with driver patches for your model of MacBook. The full github page can be found here, but for you specifically;

  For models with a T2 chip (MacBookPro15,* MacBookPro16,1) you'll need
  the BCE drivers from https://github.com/MCMrARM/mbp2018-bridge-drv and
  the touchpad and keyboard patches from
  https://github.com/aunali1/linux-mbp-arch

Hope this helps.


I recommend against using dd.  It just does a dumb sector by sector copy, which means it will fail if the destination partition is smaller, and wastes a lot of time copying free space, and if the destination partition is larger, the additional space will not be available until you run resize2fs to expand the filesystem.

It is best to do this from a live CD because if you copy files while they are being modified, you will end up with corrupt results.

Format the ssd and get both the new ssd partition and the original root partition mounted, then just run sudo cp -ax /media/old-partition/* /media/new-partition, where old-partition and new-partition are replaced with their actual mount points. That will copy every file over, preserving ownership, permissions, and timestamps.

Then run sudo grub-install --root-directory=/media/new-partition /dev/SSD_DEVICE, after substituting correct values for new-partition and SSD_DEVICE. That will install grub, making the disk bootable.

Once you reboot (making sure your bios is configured to boot from the ssd instead of the old drive ), make sure that you are running from the ssd and not from the old drive by checking the output of df and/or mount, and you should be good to blow away the old partition.

Oh, and you will want to edit the /etc/fstab file on the new partition after copying and updating the UUID of the root partition to match the UUID of the new SSD partition instead of the old one.  You can find that UUID by running sudo blkid.

Edit: added /* in copy above, but needed edit to be more than 6 characters. Now it's 101 characters!


Why does Unity 2D start when I choose the "GNOME/Openbox" session?

That is because your GNOME installation was installed as a dependency from another package(usually when someone installs gnome-tweak-tool, and gets a bunch of other gnome packages) If you want to fix this, then I suggest first removing Gnome3, and then re-installing it. And if you want unity to go away temporarily then use "killall unity-2d" and "gnome-panel" commands...


I have written a php code which executes a python prog..it is running on a lampp server how do i get the python libraries working?

I cannot answer your question due to a lack of details. However, have you using mod_python instead of calling through php?

http://www.modpython.org/


Usually the UUID of an external drive does not change. However under certain circumstances (e.g. by switching to another USB port) the UUID may become different.

Therefore we can mount drives using their label. Because we define the label by ourselves it will not change. However we need to take care to make unique labels for our drives.

Mounting by labels can also be done in the Fstab by adding a line similar to this:

LABEL="ExternalExt3"   /media/usb-ext3   ext3   defaults   0   2

To add or change a label we may use:

for FAT32:

sudo mlabel -i /dev/sdc1 ::"my_label"

for NTFS:

sudo ntfslabel /dev/sdc1 my_label

for ext2/3/4:

sudo e2label /dev/sdc1 my_label

(adapt the values in the given examples to your system!). NTFS partitions can also be labeled with gparted.


search for 'xenial' in the list of http://kernel.ubuntu.com/~kernel-ppa/mainline/ where you can find this one

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.9-xenial/


There are basically 3 ways to install Apache Netbeans incubating as described below:

Installing using ubuntu-make:

Apache Netbeans (incubating) is now available via ubuntu-make. As they say, latest version, You can now install Netbeans 11.0 using ubuntu-make. For that, run:

sudo add-apt-repository ppa:lyzardking/ubuntu-make
sudo apt-get install ubuntu-make
umake ide netbeans

Installing from Binaries:

For NetBeans 9.0: Download the binary zip for NetBeans 9.0 from the direct download link.
For NetBeans 10.0: Download the binary zip for NetBeans 10.0 from Apache Download Mirrors
For NetBeans 11.0: Download the binary zip for NetBeans 11.0 from Apache Download Mirrors

Unpack the zip and run netbeans in bin folder using ./netbeans. I'll suggest to make a desktop entry a.k.a. menu shortcut. For details about it read How can I create launchers on my desktop? - Ask Ubuntu.

Building from Source:

Note: According to Apache NetBeans' release notes (which can be found on Releases / Apache NetBeans under corresponding release) NetBeans 9.0 is compatible with JDK 8, 9 and 10, NetBeans 10.0 with JDK 8, 9, 10 and 11 and NetBeans 11.0 with JDK 8, 9, 10, 11 and 12. Building NetBeans with an incompatible JDK might cause build errors. Moreover JDK 9 and 10 were non-LTS version of Java which seems to be obsolete as of now and are no longer available in Ubuntu's official repository. The installation process of both is described below.

Download the source zip for:

NetBeans 9.0 from the direct download link
NetBeans 10.0 from Apache Download Mirrors
NetBeans 11.0 from Apache Download Mirrors

Install either Oracle JDK or OpenJDK.

For Oracle JDK8: Download JDK8 from here and run these commands:

sudo su
mkdir /opt/jdk
tar -zxf jdk-8u181-linux-x64.tar.gz -C /opt/jdk
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100

For OpenJDK8, run

sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-jre

For OpenJDK11, run

sudo apt install openjdk-11-jdk
sudo apt install openjdk-11-jre

Install Apache ANT: For installing Apache Ant, run

sudo apt install ant

Once you’re all set just extract the downloaded source, enter the incubator-netbeans directory and type ant to build the Apache NetBeans IDE.
Once built, the IDE bits are placed in the ./nbbuild/netbeans directory. You can run the IDE from within the incubator-netbeans directory by typing ./nbbuild/netbeans/bin/netbeans or use ant tryme to run the Apache NetBeans IDE.


Will I lose my data when I install Ubuntu alongside windows?

If you install Ubuntu alongside Windows 8.1 you will not lose any data, I have done this in the past. P.S. If I was you I would wait an extra month for Ubuntu 14.04 LTS (Trusty Tahr) to come out and then install it (that's what I would do) If you have a USB backup the data aswell, just to be extra safe.


14.04 - How to enable both Right click and Multi-Touch in ElanTech touchpad?

This is how I adjusted the touchpad on my Lenovo Yoga 2 Pro:

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    # This option is recommend on all Linux systems using evdev, but cannot be
    # enabled by default. See the following link for details:
    # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
    MatchDevicePath "/dev/input/event*"

    Option "FingerLow"              "46"
    Option "FingerHigh"             "46"
    Option "ClickFinger1"           "1"
    Option "ClickFinger2"           "2"
    Option "ClickFinger3"           "3"
    Option "TapButton1"             "1"
    Option "TapButton2"             "3"
    Option "TapButton3"             "2"
    Option "AreaBottomEdge"         "85%"
    Option "SoftButtonAreas"        "60% 0 85% 0 40% 60% 85% 0" # Btn2 LRTB - Btn3 LRTB
    Option "EmulateMidButtonTime"   "75"
EndSection

Maybe this helps.

(source: http://memobadz.wordpress.com/2014/02/16/lenovo-yoga-pro-2-on-ubuntu/ )


Enable Wireless adaptors on Dell 1018 inspiron

Had a similar problem with an Inspiron 1018, where wireless stopped working. What fixed it for me was to boot into Windows and re-enable wireless (F2 button) from there. Discovered later that it could be also re-enabled from the BIOS by doing a factory reset there, in case you've removed W7 altogether. Just making sure the BIOS claimed wireless was on was not enough.


E: Type 'cdrom://Ubuntu' is not known on line 1 in source list /etc/apt/sources.list

Since you seem not so familiar with usage of terminal or any text editors you could just type in this command.

sudo sed -i 's/cdrom/#cdrom/' /etc/apt/sources.list

This comments out your installation CD from your default repositories.


How to run a .sh file in terminal on login

When you set Terminal=true in the desktop file, the terminal window by default closes after the "the job has finished".  An easy solution is to change your (terminal-) profile settings:

open a terminal window, choose Profile Preferences
choose "Title & Command" (at least that is what it is in Dutch, the second tab)
in the section "when the command has finished" choose "keep terminal window open"

And of course, like you did, in the desktop file, set Terminal=true


Cannot boot from HDD after installation 14.04

Change the date and time from the boot loader. Maybe that should help with the problem. And about booting from HDd check if you have made a separate partition for Ubuntu Operating System.


unable to login to ubuntu one files with samsung galaxy tab

I did as user25188 said. And now it works without any problem.

Solution:
Upload a picture from the gallery from the tab to make the
app work normally.


Mac efi bootloader doesn't show ubuntu, and GRUB load automatically

"efibootmgr is a userspace application used to modify the Intel Extensible Firmware Interface (EFI) Boot Manager. This application can create and destroy boot entries, change the boot order, change the next running boot option, and more."

sudo efibootmgr -v

will return a list of your present boot entries. For example:

BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0080
Boot0000* ubuntu
Boot0080* Mac OS X

Change order:

sudo efibootmgr -o 0080,0000


Software to automatically download Youtube videos

I don't know about the first, but the second can be easily done with youtube-dl:

sudo apt-get install youtube-dl

I've copied the help text about formating here:

Video Format Options:
    -f, --format FORMAT        video format code, specifiy the order of
                               preference using slashes: "-f 22/17/18"
    --all-formats              download all available video formats
    --prefer-free-formats      prefer free video formats unless a specific one
                               is requested
    --max-quality FORMAT       highest quality format to download
    -F, --list-formats         list all available formats (currently youtube
                           only)

So you can use --max-quality to get the maximum quality format. On a personal note, I find youtube-dl very easy to use (I just type yo and Tab in terminal and it auto-completes it for me). It can also download every video by a specific channel and has a multitude of options.

I believe you can set it to continue downloads with the -c option and if you do that for a channel, it should download only new ones if in the same directory as the others were downloaded to, but have not tried it in practice. If you can, then you can run youtube-dl on a script and it will only download the files when there are new ones.


How to solve "boot in insecure mode" error?

It is available in Ubuntu14.10 release notes that SecureBoot is disabled for UEFI system, You can refer the below release note

  An update to shim in 14.10 introduces a bug where, when booting on a UEFI system with SecureBoot disabled, the boot is delayed for two seconds and a message "Booting in insecure mode" is displayed on the screen. This message does not indicate a security problem with Ubuntu and does not interfere with the operation of the system except for introducing this boot delay. As a workaround to avoid this boot delay, users can enable SecureBoot if enabled on their hardware, or if they do not intend to use SecureBoot at all they can uninstall the shim-signed package and then rerun the grub-install command. 1384973


How can I manually install gcc tarball file in Ubuntu 12.04?

You can install packages from source with apt-get:

sudo apt-get -y build-dep gcc
apt-get source gcc
cd gcc*
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i gcc*.deb


Better to suspend my ubuntu or shut down it during long journey in car?

Maybe shut down and take a nap. Suspend will still keep some software in RAM memory, thus eating some battery. Probably not much, but enough to make a difference in some situations. That's for laptops.
If you're planning to take notes on an Ubuntu tablet or convertible, i see no reason to shut down. God, i wish i'd have a Galaxy tablet with Ubuntu on it!


How do I move child windows without moving or minimizing parent in GNOME 3?

It can be done using '(GNOME) Tweaks' (previously known as '(GNOME) Tweak Tool'). There should be a toggle button for "Attach Modal Dialogues" in the Windows section. Disable it.

To install Tweaks, run
sudo apt install gnome-tweaks

(or sudo apt install gnome-tweak-tool).

Alternative solution:
Open Terminal and run
gsettings set org.gnome.shell.overrides attach-modal-dialogs false

This detaches modal dialogues from the parent window and hence should fix your problem.
If this doesn't work you need to toggle another gsettings/dconf key following OP's answer or use (GNOME) Tweaks as mentioned above.


Pass a string variable to a comment in a bash script

You just have to add this following lines inside your script :

echo "#heres the comment line with this variable inserted:" $1 >> script.sh

Explanation :

$1 is your string variable; if you want to use a sentence, there is 2 way :

using backslash \ like test\ magic\ beautiful (the \ say the space is a character)
using double quote " like "test magic beautiful" (inside "", everything is consider as a character)

>> add the text at the end of your script whereas a simple > would erase your script and write the text
the comment must be inside double quote "

Here is the script before and after execution :

damadam@Pc:~$ cat script.sh
echo "#heres the comment line with this variable inserted:" $1 >> script.sh
damadam@Pc:~$ ./script.sh test
damadam@Pc:~$ cat script.sh
echo "#heres the comment line with this variable inserted:" $1 >> script.sh
#heres the comment line with this variable inserted: test

and with 2 words string :

damadam@Pc:~$ ./script.sh test\ magic
damadam@Pc:~$ cat script.sh
echo "#heres the comment line with this variable inserted:" $1 >> script.sh
#heres the comment line with this variable inserted: test
#heres the comment line with this variable inserted: test magic


How to use NGINX with private and internal IPs

If your server is behind NAT with a port forward, you have to use the Host header matching mechanism of server_name.  The only way to do this would have a completely separate configuration that matches server_name pub.lic.ip.addr; like so:
server {
    listen private:{port};

    server_name pub.lic.ip.addr;

    # ... configure this site.
}

... however, this will ONLY work if the public IP address itself is being requested bare, and certain port-forwarding settings might disrupt this.


How are key codes mapped to the appropriate action?

Ok, found this at https://help.ubuntu.com/community/MultimediaKeys

  When you hit a key on your keyboard, the linux kernel generates a raw
  scancode for it (if it is assigned). Each scancode can be mapped to a
  keycode. This is at kernel level. X has a (quasi) total independent
  way of mapping keys: X reads the kernel keycode table at startup, then
  maps the keycode to its independent keycode table (it is the same as
  the kernel keycodes but different :)). Then each keycode can be mapped
  to a keysym, i.e. a string which represent a key or suggest an action.
  Thus to have our keys fully functional, they need a kernel
  scancode/keycode plus a X keycode/keysym. It may seem weird, but X
  developers have their reason to keep a separate keyboard mapping from
  the kernel. It is not difficult at all, just a quite tedious
  procedure.

So keycodes's are mapped to keysym's, So where are the keysym's? I found and answer from this question: Where do I find a list of all X keysyms these days? Since we are talking about the volume keys it would be found in XF86keysym.h in the source-code mentioned in the answer.

In that file on my computer I found the following for volume:

#define XF86XK_AudioLowerVolume 0x1008FF11   /* Volume control down        */
#define XF86XK_AudioMute    0x1008FF12   /* Mute sound from the system */
#define XF86XK_AudioRaiseVolume 0x1008FF13   /* Volume control up          */

Strange... different values from anything else, maybe there are multiple systems for handling keys? http://crunchbang.org/forums/viewtopic.php?id=16656

I am using Xubuntu, and to control the keys, I need to map the actions manually(like this How do I change my keyboard shortcuts in xubuntu?). However the notifications seem independent as if they are picking up on the key-press and acting accordingly, It may mean that other programs in Ubuntu are set up this way, so there is no need to map scripts to the keys.

So I'm quite sure that programs are now picking up on the key (so no scrips to be found).

In Xubuntu I had this problem with Pulse Audio and using custom scripts for changing the volume, It seemed that Pulse was intercepting the Mute key, Mute key mutes Alsa and PulseAudio, but unmutes only Alsa made for interesting workarounds.

Check this out about NotifyOSD https://wiki.ubuntu.com/NotifyOSD#Volume_changes

If you look a These diagrams: https://wiki.ubuntu.com/NotifyOSD#Architecture

Especially this one:

It shows that there is a "hardware keys listener" which receives form DBus or HAL?
It then "retrieves visual element from system" which the sound and brightness icons are in the source of Notify-OSD, and then makes the bubble from there.

This is all crazy confusing, but as far as I understand it (so far):

raw scancode (ex. e016) > keycode (ex. 160) > keysym (ex. XF86AudioMute) > gnome-settings-daemon (ex. volume-up) > DBus signal > hardware-keys-listener for notify-osd (or other program listening)


LastPass Sesame (Ubuntu/Debian) does not work after update to Wily Werewolf 15.10

libssl0.9.8 is only available in previous repository versions of Ubuntu, namely:

precise (12.04LTS) (libs): SSL shared libraries [universe]
   0.9.8o-7ubuntu3.2 [security]: amd64 i386
precise-updates (libs): SSL shared libraries [universe]
   0.9.8o-7ubuntu3.2: amd64 i386
trusty (14.04LTS) (libs): SSL shared libraries [universe]
   0.9.8o-7ubuntu3.2.14.04.1 [security]: amd64 i386
trusty-updates (libs): SSL shared libraries [universe]
   0.9.8o-7ubuntu3.2.14.04.1: amd64 i386
vivid (libs): SSL shared libraries [universe]
   0.9.8o-7ubuntu4: amd64 i386

If you have Ubuntu 15.10+ (wily+), libssl0.9.8 is obsoleted by libssl1.0.0:

wily (libs): Secure Sockets Layer toolkit - shared libraries
1.0.2d-0ubuntu1: amd64 i386

In short, this means that Sesame has to update to use the newest version of libssl, or you have to revert to an older version of libssl.

More information on this here:

http://packages.ubuntu.com/search?keywords=libssl0.9.8
http://packages.ubuntu.com/search?suite=wily&section=all&arch=any&keywords=libssl&searchon=names


gedit : plugin "imitation" doesn't work after upgrade to ubuntu 14.04

You basically need to update your version of the imitation plugin for 14.04 / gedit3.10.

Download the plugin source tarball from here (Imitation 1.3 for gedit 3.8+).
Extract imitation-1.3.tar.gz (e.g. using Nautilus)

You should get the following tree structure:

.
├── COPYING
├── imitation
│   ├── config.py
│   ├── __init__.py
│   ├── iter.py
│   └── tab.py
├── imitation.plugin
└── org.gnome.gedit.plugins.imitation.gschema.xml

Open a terminal (Press Ctrl+Alt+t)
Run the following commands:

cd ~/Downloads/imitation-1.3 (or where you extracted the .tar.gz file)

sudo cp org.gnome.gedit.plugins.imitation.gschema.xml /usr/share/glib-2.0/schemas

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

sudo cp -R imitation.plugin imitation/ /usr/lib/x86_64-linux-gnu/gedit/plugins

Or for a 32bits system:

sudo cp -R imitation.plugin imitation/ /usr/lib/i386-linux-gnu/gedit/plugins

Activate Imitation in gedit's preferences


Is adding device to subvolume the same as adding device to main filesystem in btrfs?

You can't add a device to a subvolume. You can add a device only to a filesystem.

But this command will work with any path to an object located on a btrfs filesystem.

And it looks like you do not quite understand what subvolume is. Adding a device to a subvolume makes no sense for me at all.


From Bellum PLC Forum - Ubuntu 11.10 init 100% cpu usage bug:

  I noticed an CPU usage issue with init due to upstart, Which was eating 99% ram constantly. and i decided to find working fix.
  This is a bug which has been confirmed by Ubuntu but below is a simple quick fix patch which should work completely for all.

  Firstly Open up SSH and add the following PPA
    add-apt-repository ppa:jammy/upstart.fix-880049
   Hit enter and Enter again.

  If It says command not found, Issue this command first
  apt-get install python-software-properties
  Then
  apt-get update && apt-get upgrade

What are PPAs and how do I use them


Do I need to make a separate partition when installing via Wubi?

No, if you are using Wubi (the Windows installer) to install Ubuntu in Windows, you don't need to do any repartitioning. Partitioning your drive is only required if you plan on installing Ubuntu alongside Windows via the LiveCD/USB method. Wubi installs Ubuntu in such a way that it is more like a Windows program instead of a standalone OS with its own space.

If you need to access your Windows files in Ubuntu if you installed it using Wubi, see Accessing Windows partition inside Wubi.

For more information on Wubi in general, see here.


Remmina "unable to establish connection to RDP server:" to macbook

Mac Screen Sharing uses VNC for the connection.  RDP will not work in this situation.

When you setup Screen Sharing on the Mac you give it a separate password than what you use for ssh which uses your standard login password of the Mac.  The username you use when setting up Remmina is the same username you log into the Mac with if you're the administrator.  You could also set the users with access in the Allow access for: box.  The password is the one you setup in the Screen Sharing, within the Computer Settings... button, which is limited to 8 characters.

This screenshot came from within Remmina connected to my Macbook showing the VNC password limited to 8 characters when I set it up:

This is how my Remmina settings connecting to my Macbook look:

Hope this helps!


You might want to try out PulseAudio Volume Control (or simply pavucontrol).

Open a terminal by pressing Ctrl + Alt + T and type

sudo apt-get install pavucontrol

or install it via Ubuntu Software Center

After installation is finished, open your dash and type pavucontrol. Under 'configuration' tab there should be a list of different hardware profiles. Just select the one you need an close pavucontrol.

That's it.


Using rsync to sync new files from windows folder to ubuntu

Try

sudo rsync --archive --verbose --human-readable --itemize-changes --progress --no-o --no-g --delete --delete-excluded /media/windowsshare/photos /media/mediadisk1/data/photos 2>&1 | tee -a /home/XXX/rsync-output.txt

On location /home/XXX/rsync-output.txt command will create log file and you can see what is done.


why some website(yahoo.com, alibaba.com, prothom-alo.com...) not loading in my ubuntu 12.04?

Edit the file /etc/default/avahi-daemon as root and find the line that contains AVAHI_DAEMON_DETECT_LOCAL=1. If it doesn't exist, you can add it. Either way, you should edit the line to read AVAHI_DAEMON_DETECT_LOCAL=0. That should fix your problem.

Source


Bash /proc/sys/net/ipv4/ip_forward: Permission denied

The permission bits for the file /proc/sys/net/ipv4/ip_forward is:

-rw-r--r--

with owner:group being root:root.

So only root can write to the file.

When you do:

echo 1 > /proc/sys/net/ipv4/ip_forward

as a normal user, you won't be able to write to the file due to insufficient permission.

You can do:

Use sudo and bash:

sudo bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'

Use tee:

echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

Note that, you should use /etc/sysctl.conf for persistent operations on the /proc/sys subdirectories.

In a nutshell, to enable IP forwarding, you can just put the following in /etc/sysctl.conf:

net.ipv4.ip_forward = 1

Then run:

sudo sysctl -p

to have immediate effect.

This has the same effect as editing the file /proc/sys/net/ipv4/ip_forward  directly, and not to mention far cleaner and of course persistent.


How to make windows compatible PPT on ubuntu 12.04?

LibreOffice comes installed in Ubuntu, the presentation program is called Impress.

You can also open Microsoft PowerPoint files, and save your work in PowerPoint format for people still locked into Microsoft products. Alternatively, you can use the built-in exporter to create Flash (.swf) versions of your presentations.

https://www.libreoffice.org/features/impress/


Screencast 1024x768, What is the recommended encoding?

I like to use mpeg2video to record screencasts because it's less CPU intensive. Afterwards I convert to MPEG4 video (not x264) with FAAC audio works because I've found those codecs work well with all of the Linux video editors.

To make sure you have all of the codecs you need installed:
sudo apt-get install ffmpeg libavcodec-extra-53 libfaac0

You can use this command to convert videos to the editing format:
ffmpeg -i in.ogv -vcodec mpeg4 -acodec libfaac -sameq out.mp4


Resolution of external monitors stuck at 1440x900 on Thinkpad T430 with Intel HD graphics

Well, I solved this issue in the following manner:

Navigate to System Settings > Displays again and select one of the external displays.
Disable that display and hit Apply. At this point you should only have 1 active external display.
Select the active display in the settings GUI and change its resolution to the preferred setting. It should apply successfully.
Re-enable the other display, and you may find (as I did) that it has automatically assumed the same resolution setting as your first external display did.

I was never able to get a clear answer as to what was causing this issue from a technical standpoint, but I was able to find a solution which I figured ought to be documented.


I have read different resource and found decision which works for me:

Install Cordova in these steps with dependencies:
Installing Node.js.
Node.js may already be installed. To test the installation, open a terminal window and type:

nodejs --version

If the version number is displayed, Node.js is installed.
If Node.js is not installed, install with:

sudo apt-get install nodejs

Also add the alias "node" for nodejs, as this is needed by Cordova:

sudo ln -s /usr/bin/nodejs /usr/bin/node

Install Node Package Manager (npm). Test if npm is installed by typing:

npm --version

If npm is not installed, install with:

sudo apt-get install npm

Installing Git.
Git is a version control system, which is used by Cordova behind-the-scenes. Test if Git is installed by typing:

git --version

If Git is not installed, install with:

sudo apt-get install git

Installing Cordova. Cordova is installed using the Node Package Manager (npm). Type the following to install:

sudo npm install -g cordova

My test the Cordova install by typing:

$ cordova --version
7.0.1

If you see the version number, you have successfully installed Apache Cordova!


Yakuake not responding after hitting F12

For anyone else having this problem, I did some digging and figured out why yakuake was not working correctly. See this response by presumably the author of the package.

It seems to me that the configuration panel of yakuake is buggy in some way when it does not change or, perhaps, shouldn't have created in the first place, these system-side keybindings.

Hope this helps!

Edit: I figured I should add that the easiest way I found to fix it was to simply delete the system keybind and then recreate it in the yakuake config.


How might I force the desktop to load for a specific (master/admin) user?

How might I log into the admin. account, and force the desktop to load properly?

Control-alt-f1 (f2 through f6 will do the same; if you do not get a login there is also something wrong with your graphics card ;) ) will give you a text based login. Log in with your admin account and check the disks with

df -H

It will list all partitions and a percentages used. If any of the partitions are on 100% see if you can remove some stuff on the directory associated to that partition.

The are some options you can do after that:

sudo reboot

to reboot. Or ...

exit

to quit this sesssion and then control-alt-f7 gets you back to the desktop.

  and force the desktop to load properly?

Easiest would be to reboot after you are done doing maintenance. This will reset everything and should allow you to login. If it does not it would also be adviced to login to console (ie. control-alt-f1) and check the log files in /var/log/ (needs admin access). A command to use on these text files is tail -n 100 {logfile} (shows the last 100 lines in a file).


How can I export emacs documents in 13.04?

Depending on which version of emacs you are using, you can either install the emacs23-el or emacs24-el package.

sudo apt-get install emacs24-el

That seems to work around the issue here. There is a similar bug on launchpad: https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1172214 , so it seems like it may be a bug in emacs24.


Had the same issue. Seems like a bug. I disabled the screen rotation from task bar(top right) and it went to landscape mode. Just check if this works for you. Also, xrandr does not work on Wayland.

gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock true

Additionally, the below command ought to disable the orientation plugin completely.

gsettings set org.gnome.settings-daemon.plugins.orientation active false

Also, gnome provides an option to rotate the screen from Settings -> Devices -> Displays -> Orientation setting (search for displays in 'Activities').


OK, first of all you have wrong sources.list that includes only main channel. So, do sudo gedit /etc/apt/sources.list and make it look like this:

deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe

Save and exit.
Then update your repository:

sudo apt update


Red items in HTML sudo lshw -html > ~/hardware.html

I am almost certain that the red colour indicates that the node in red is UNCLAIMED and yellow nodes are ENABLED (see below).

When I execute lshw -html, there is one item in red in the HTML report which, on the terminal listing, is status UNCLAIMED, eg    *-enclosure UNCLAIMED.

All other nodes on the computer are yellow in the HTML and do not have a status in the terminal listing, so I assume they are most likely to be ENABLED.

Not sure what colour the CLAIMED or DISABLED are, as there are no nodes on my computer with these statii on the terminal listing.

Extract from http://ezix.org/project/wiki/HardwareLiSter

How to interpret lshw's output

lshw displays nodes with attributes in a tree-like structure (that can be in indented plain text form, HTML, XML or graphically displayed in the GUI). Each node has its individual status: it be CLAIMED (potentially usable) or UNCLAIMED (no driver has been detected for this node), ENABLED (this device is supported and can be used) or DISABLED (this device is supported but has been disabled):

a node is marked as CLAIMED if a driver (usually a kernel module or a driver within the monolithic kernel) has been loaded for it
a node is marked as UNCLAIMED if no specific support for it has been loaded (or lshw has been unable to identify the driver)
a node is marked as ENABLED if a driver has been loaded for it and is fully functional
a node is marked as DISABLED if the node has been disabled by a configuration, some hardware failure, etc.


Cyberroam has no GUI, you run it through the terminal. You have an error because you are not in the program's directory. Find where cyberroam is located. Navigate your way through the terminal to the folder, and run ./crclient with an option(listed in the readme file). Or, right click in folder, click "open terminal (here)" and run ./crclient.


Unable to install Windows 7 in VirtualBox Manager in Ubuntu

With knowing than Windows error messages usually are not very clear I would suggest you still try to enable the PAE/NX in the virtual machine's system settings.

Of yourse you will only be able to do that in case your host CPU supports this.

It may also help to enable VT-x/AMD-V virtualization in the host's BIOS to then also use it in the VM:

Last not least we should select the appropriate guest OS "Windows 7 (32-bit)" in the General tab of the machine's settings.