Gnome Shell - Network Manager. Missing features?

gnome-shell's network applet is a bit unfinished.

You can either:

disable the gnome-shell's network applet, reverting to the old network-manager applet (nm-applet).
run nm-connection-editor to edit the connection (or right click the network icon).

To disable gnome-shell's network-manager applet. Type the following into a terminal:

sudo mv /usr/share/gnome-shell/js/ui/status/network.js /usr/share/gnome-shell/js/ui/status/network.disabled

Then reload gnome-shell either by executing (via alt+F2) the command r or from the command line by running gnome-shell --replace


For custom shortcuts, you can't bind your keyboard shortcut if you only selected the row. This is different from how it works for System shortcuts, where merely selecting the row is enough to input a new keyboard shortcut.

You have to click on the Disabled and wait for it to change to New accelerator.... After that you can press your desired keyboard shortcut and it will be reflected appropriately.


No sound on Virtualbox with Mac OS Mojave as guest

I'm still tracking down audio but the above answer on screen resolution is just not correct. Run this from your Virtual Box install location. I've ran this on Windows 10 and have full screen.

VBoxManage setextradata "<your VM Name>" VBoxInternal2/EfiGraphicsResolution 1920x1080

Note: Be sure to change <your VM Name> to the name of your VM instance.


How Do I Change The KDE Lock Screen Shortcut From A Script?

It appears that global keyboard shortcuts shortcuts are stored in ~/.config/kglobalshortcutsrc. It's structured in headered sections like an INI file. You might be able to add the shortcut if you can add it to that file in the correct location.

Source: https://forum.kde.org/viewtopic.php?t=151477


If I want to dual-boot Ubuntu with another OS, what partitioning method should I use?

It all depends on what your current partitioning scheme is and what you want it to look like with Ubuntu installed. If you are familiar with GParted, I would highly recommend running that from the LiveCD and setting up partitions before starting the installer.

  P.S. Oh, and I am also planning on not modifying the MBR of Windows if I ever do dual-boot with Ubuntu, using instead a piece of free software (like easyBCD or something) to avoid the headaches of Grub being overwritten by a Windows update.

In that case, use Windows' Disk Management to move/shrink all Windows partitions to the LEFT of the hard disk. You can then start directly with the Ubuntu Installer's partitioner -- create an extended partition in the free space, within which you can create all your Ubuntu partitions, and be sure to install Grub to the extended partition (typically something like /dev/sda5) and NOT to the MBR (/dev/sda).

  am I correct to think that it would be the acme of foolishness to try to partition drives within a virtual machine

No. The hard disk in a virtual machine is like any other, so feel free to partition it, dual-boot your virtual machine, triple-boot it even! The only limitation is that of performance compared to a real hard disk, imposed by a combination of Virtualbox and the underlying physical hardware.


How do I blacklist certain directories in Samba?

I'm thinking veto files is the option you're looking for.

Edit /etc/samba/smb.conf with root rights. Under the particular share /var/test, the following setting will exclude any descendant sub-directory or file matching foo or *bar* (beware, / means OR):

[myshare]
  path = /var/test
  veto files = /foo/*bar*/

Then, you need to restart Samba with stop and start (not reload):

sudo /etc/init.d/samba stop
sudo /etc/init.d/samba start

Note: Shares created through Nautilus GUI are defined in individual files in /var/lib/samba/usershare but veto files can't be applied there. If it's your case:

Either add veto files to the [global] section of /var/lib/samba/usershare. This will affect to all your global shares.
Or delete the existing share definition file under /var/lib/samba/usershare and re-create it manually under /etc/samba/smb.conf. You can't copy paste; instead, follow the guide.


Installation of Ubuntu 12.10 on a tablet pc

I Kindly Suggest you to go to the ubuntu recovery mode console and do the following things

sudo fsck
sudo apt-get clean


pdfbeads expects a single page TIFF file and a single page html hOCR file for every page in the document. If it can only find one TIFF file, it will only output one page.

Split the TIFF file with tiffsplit. hocrsplit from hocr-tools might be able to split your html. Never needed to use it, myself.

I wouldn't worry about the iconv warning. Ruby always does that with pdfbeads. Reason here: iconv deprecation warning with ruby 1.9.3 - Stack Overflow


Old Dell Optiplex GX520 running Ubuntu; how would I go about installing multiple Linux distros?

There is a detailed guide on how to burn ISO images on windows or Ubuntu here.
After you have successfully burned the image, put the disk in the DVD drive and reboot your PC. Now you have to choose the boot device to boot from. There is a default boot order set in the BIOS. This is the order that BIOS searches different drives and devices, and then boots the first bootable OS that it finds.
In most cases the first bootable device is your HDD drive so your Ubuntu installation will be booted. To boot from your newly burned DVD disc, you have to select the DVD device. On different BIOS-es the key that opens the boot menu varies, but in many cases it is F12, another F-key, esc or del.
So after you reboot start repeatedly pressing F12 (or other key) before your system is booted. If you succeed you will see a prompt with a list of devices.

You should select your CD-ROM/DVD drive and then you will be presented with options of the new distro (depending on how you created your DVD disk available options could be Try Ubuntu without installing or Install Ubuntu). You can select one of them and proceed with the installation.
Note that installing many distros on the same machine for testing purposes is not a very good idea. If you want to completely replace one distro with another it is ok, but if you want to have two or more distros at a same time I suggest you download VirtualBox from Ubuntu Software Center and install other operating systems in virtual machines. You can install as many distros you like on this machine and test them without the risk of messing up your system or having to delete and repartition each time you decide you do not like this distro.
Edit
To permanently change the boot order you will have to enter the BIOS setup page. To do so reboot your PC and press F2 or on some BIOS-es DEL several times before the OS boots.
This will bring you a blue screen with BIOS configuration. From the top menu go to Boot section and there you can see the available Devices and their order. You can change this order with enter and Up/Down Arrows. You can bring your CD drive at first place, so it will aways boot from CD if it is present.


The syntax of the VirtualHost Directive is

<VirtualHost addr[:port] [addr[:port]] ...> ... </VirtualHost>

Where addr is the address of the virtual host, not its physical path.

So it is safer to use an IP (or the * wildcard). It even says it in the documentation that, you can use a fully qualified domain, but it is not recommended:

From the documentation:

  A fully qualified domain name for the IP address of the virtual host (not recommended)

To achieve what you are asking, you need a combination of the DocumentRoot and ServerName directives. Which, in fact, are already there.

Example:

<VirtualHost *:80>
    DocumentRoot /var/www/domain.com/
    ServerName www.domain.com
    # Some other configs
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/domain.com/test/
    ServerName test.domain.com
    # Some other configs
</VirtualHost>

Also, there is another issue in your virtual host configuration, as of apache2.4 (which is shipped by default in 14.04) the allow directive is replaced with the Require directive.

It also needs be inside a special directive, for example, the Directory directive:

<Directory "/var/www/domain.com/">
    Require all granted
    Options +Indexes
</Directory>

This is a complete Virtual Host configuration:

<VirtualHost *:80>
    ServerName www.domain.com
    ServerAdmin webmaster@domain.com
    DocumentRoot /var/www/domain.com/

    ErrorLog ${APACHE_LOG_DIR}/domain.error.log
    CustomLog ${APACHE_LOG_DIR}/domain.access.log combined
    UseCanonicalName on

    <Directory "/var/www/domain.com/">
        Require all granted
        Options +Indexes
    </Directory>
</VirtualHost>


This may be on the bleeding edge, but there is a Linux kernel driver for Corsair Kxx that is currently under active development. The base is Corsair K90, but there are reports for the Corsair K40. It might work for the Corsair K30.

A feature worth mentioning is:

  Remapping G keys so they send proper key codes.

An alternative is the K65/K70/K95 RGB Unofficial Driver for Linux and OS X, but it seems to be for the RGB editions only. It is on GitHub, though.

Note: I don't know about the Corsair K30, but for the Corsair K95 RGB the G-keys do not work because they are not executed in the keyboard itself, but by software in the operating system (only intended to be Windows).


what could possible take 100% cpu but not show up in (sudo) top

The Ubuntu Kernel Team has a wiki explaining how to identify power sucking applications. This may have some useful ideas or tips to debug this issue of yours.

See: https://wiki.ubuntu.com/Kernel/PowerManagement/IdentifyingIssues

top is a useful tool to see the top CPU consumers, however it cannot easily spot short lived processes or threads that get created and die very quickly. For these kind of CPU sucking processes, I developed forkstat to try and track these down. It is available in recent releases of Ubuntu, or you can download it from ppa:colin-king/white  (see http://kernel.ubuntu.com/~cking/forkstat/)


I installed lvm and I run gparted with

sudo gparted

then I activated the right partition. Now I see it.


Provide password to `nmcli con up` in terminal 14.04

You can write-update a password to a seperate file. This works for me:

echo "vpn.secrets.password:MY_PASSWORD" > /my/vpn/password
nmcli con up uuid MY_UUID passwd-file /my/vpn/password


What's the best approach to triggering a distro upgrade for an OEM build?

Your postinst could run whatever custom scripts need to happen, and finally, you could trigger the distro upgrade with:

sed -i 's/hardy/lucid' /etc/apt/sources.list
apt-get update
apt-get install dpkg apt
apt-get dist-upgrade

Your scheme could work, with plenty of testing. There may be still small things that fail and will need to be resolved by hand, but this should at least get you started.


You have to install the virtualbox-dkms package:
sudo apt install virtualbox-dkms

I think that with synaptic, finding virtualbox and run "reinstall", the packages are installed, but can't test rigth now.


$ sudo apt install gcc

It installs 7.5.0 version which is default now. So no need to downgrade to default version. 7.5.0 is default for 18.04.04 LTS.

$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

user@pc:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

GCC 7.4.0 is default for Ubuntu disco 19.04 which is EOL now and is not supported on this resource.

And it is also available for 19.10 in ports section for some specific platforms:
7.4.0-14ubuntu2 [ports]: arm64 armhf ppc64el s390x

Reference


Installed Ubuntu 11.04 and now have no frames and/or panels

To get your window titles and frames back, open your terminal and type this:

compiz-decorator --replace


Try doing sudo apt-get clean. That should delete some files the system doesn't need anymore (nor do you).


Does installing Ubuntu on D: keep Windows from putting programs there?

It depends on how do you install Ubuntu on disk D:

If you use full disk for Ubuntu partitions, it will be unusable by Windows.

If you select a part of disk D: to install Ubuntu, you can use the other part as an NTFS partition.


I assume you installed it finally under wine , if so, the check:

ls ~/.wine/drive_c/Program\ Files\ \(x86\)/


Why does my bash script output “+ '[' 0 -le 1 ']'” when started with bash -x script.sh?

Your script:

mysqldump -hhostname -uusername dbName -p'p@ssW0rd' > db.sql

if [ $? -lt 1 ] #<-- if the script exit status value is less than or equal 1, which means it succeeded then execute the if block
then
    # zip the file and copy it s3 bucket
    gzip -9 db.sql #<-- create a zipped folder from the mysql backup file
    s3cmd put db.sql.gz s://mys3bucket/ #<-- Amazon http request PUT command
else
    echo "Fail to backup MySQL DB" >> "backup.log" #<-- if the backup failed let us know by out putting this message into the backup.log file
fi

'[' 0 -le 1 ']': A zero here means the the command to backup succeeded, and reads "less than or equal to". And yes those lines with a "+" are showing you the various steps in the execution process and that is because you used the -x  in the option in executing the bash script.

Also as noted by desert the sudo and the "-le" option should be removed and changed to "-lt" respectively.


The ls command shows me the userid instead of username how can I fix this?

When you first install Windows Subsystem for Linux there are no user IDs setup. You need to create one first:

Add User to Windows Subsystem for Linux (WSL) Distro in Windows 10

There are times when User IDs cannot get created properly in which case installing the most recent version of WSL from Microsoft Store is best course of action:

WSL / Bash on Windows 10: Creating UNIX user failed, returned error code 10


How to make a specific device have read/write permissions when pluged?

Yes, it gives permission to public users for all those serial devices.
You can use ATTRS{idVendor} & ATTRS{idProduct} to filter out target devices:

ACTION=="add", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="0005", MODE="0666"

I add ACTION=="add" to skip other unwanted event remove (device node removed already) & change (device node already added and configured)


Centrino Wireless-N 1000 poor performance on N Network

Well Yes I have another solution, perhaps it could fits to your problem or not. I tried the same solution disabling the N network mode, it works but it turns out not to work under N wireless network.

In my case, I was under a WEP encrypted  wireless network, this was the reason why I was navigating to slow, with N mode enabled.

Just enable your N wireless mode and change your security wireless network to WPA2 , it will resolve your problem.

regards!


Launching a .sh file at startup with variables

If you need an easy way to execute your script after each reboot, you can use root crontab...

Just do (as root):

crontab -e

add this line:

@reboot /full/path/to/your/script param1 param2 ... paramN

save and test :)

To get the full path of your script just open a terminal, go to the script folder and execute

pwd

this will return you the full path for your current position.


I want 'None' for Visual Effects but they keep reverting back

Compiz Fusion Icon may be helpful.

Take a look at this: Emerald window decorator fails to start... sometimes, posted here for your convenience.

  You can use Compiz Fusion Icon which
  can be easily installed by dropping
  sudo apt-get install fusion-icon in
  a terminal. After that, find the
  fusion-icon in the System Tools menu
  and you will have several choices in
  the panel's fusion icon, which
  includes but not limits to: Select
  Window Decorator.

  Right click the fusion icon and choose
  your prefered window decorator, window
  manager and a few other features. Then
  select "Reload Window Manager" and
  your monitor or windows may flicker.

  Don't worry, it will take just a
  moment to reload your options and
  after that you can close the fusion
  Icon. The options should persist this
  time.

  A screenshot is placed here to
  illustrate.

  Good luck!

Edit

Take a look at this: http://en.gentoo-wiki.com/wiki/Compiz-Fusion

If you are using Gnome, go to the Gnome's section, which is placed here for your convenience.

With this logic in mind, just

  To change the default window manager
  in gnome run gconf-editor, and set
  /desktop/gnome/session/required_components/windowmanager
  to "metacity"

The majority of the times, running metacity --replace is enough for the changes you wish, but if needed, run sudo metacity --replace and let's see what happens.

I hope this help.


I just installed Ubuntu 16.04.3 LTS alongside Windows 10, but now I can't find it or boot to it

Try these steps:

Go to your boot loader (by pressing F2 or whatever your computer understands) and find something like this:
See Image. Source: https://www.eightforums.com/installation-setup/53912-windows-boot-order-problem.html
If you find Ubuntu or grub there, just change the order of them to get Ubuntu on top preference. Carefully read instructions there and 'Exit Saving Changes'.
Restart your PC.

This time you should be able to see the grub. If not, I would recommend doing a clean install of Ubuntu again by properly configuring the partitions yourself. Hope this helps!


Integrated camera vmware/Ubuntu not detected

For me the solution was to connect any usb device to ubuntu and than when ubuntu recognizes it, connect the camera. Also you have to go to virtual machine settings and change USB compatibility to 1.1

I guess this is because lenovo integrated camera is connected on usb 1.1 port.


Killing or Reconfiguring a Daemon without Restarting

kill -HUP 1721

Restarts the process 1721 by sending the hangup signal.

killall -HUP inetd

Causes the daemon to reload its config file by sending the hangup signal.

killall -1 inetd

Restarts inetd by sending signal number 1 which is the hangup signal.

The difference between this example and the previous one is the signal is called by name here rather than number.

Reference: http://www.comptechdoc.org/os/linux/usersguide/linux_ugprocesses.html


How to install multiple apps in Software Center (Similar Behavior of Synaptic)

Unfortunately, it is currently not possible to select multiple apps and then install them at a time in software-center. There is a bug report filed to have this feature in the software-center but there is no visible progress towards this.

As an alternative, if you are using 12.04 or would be using 12.04 when it is released, I suggest you try lubuntu-software-center  , which supports installing multiple apps at a time.

To install it, run the following command in a terminal:

sudo apt-get install lubuntu-software-center

As you browse the software, you can click on Add to the Apps Basket if you want to install it later. After you have selected the applications that you want to install, go to Apps Basket and click on Install Packages. This way, you can install multiple apps at a time.


What is the UID (user id) & GID (group id) that Samba Service using?

Samba runs as root, and when you connect, it changes to your user.


double click on text in terminal selects beyond word boundary

you can set it by below commands.
change the profile id with your profile id in the below command.
mine is a565cffd-62b9-4c43-bd4e-d4b48b2c3cb4

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:a565cffd-62b9-4c43-bd4e-d4b48b2c3cb4/ word-char-exceptions '@ms "-,.?%&#_+@~·/"'

here is the example:

pratap@i7-6550U:~$ gsettings get org.gnome.Terminal.ProfilesList list
['b1dcc9dd-5262-4d8d-a863-c897e6d979b9', 'a565cffd-62b9-4c43-bd4e-d4b48b2c3cb4']
pratap@i7-6550U:~$ gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:a565cffd-62b9-4c43-bd4e-d4b48b2c3cb4/ word-char-exceptions
@ms nothing
pratap@i7-6550U:~$ gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:a565cffd-62b9-4c43-bd4e-d4b48b2c3cb4/ word-char-exceptions '@ms "-,.?%&#_+@~·/"'
pratap@i7-6550U:~$


I saw this answer suggesting to set it in CCSM. I did so in General/Commands (enable it first) and add gnome-terminal for one of the command and give the keybinding you want under Key Binding tab.

Note that Ubuntu's default settings overrides this, so you have to go to System Settings, Keyboard, Shortcuts, Launchers, Launch terminal and remove it. But wait, that setting can't be removed, so just change it to something you don't use, for example Super+T.

Having CCSM manage the key binding resulted in a very snappy CTRL+ALT+T again.

Note: don't be warned by CCSM reading your CTRL as PRIMARY. It is a known issue.


ubuntu 12.04 installation partition trouble

You would use the Disk Management tool with administrative rights, and once it opens you can shrink D drive to the amount that you want to give Ubuntu.

Once done that space would be labeled as Unallocated, and you can use it during the installation.


Can't login after upgrade to Ubuntu Budgie 20.04

It seem to had similar issue on new installation, but I realized username was working fine, I tried installing kde, and worked around problem. AMD Ryzen-5 MSI ASUS AM320 + MSI GTX 1650 Super Gammming + Maxtor SSD 240Gb + DATA WDC2Tb.


Restore enigmail private keys from file system

I found my solution here.

Private keys can be recovered by moving .key files from old to new private-keys-v1.d folder and restarting gnupg.

mv ~/backup/home/user123/.gnupg/private-keys-v1.d/*.key ~/.gnupg/private-keys-v1.d/

Public keys can be restored from keyservers using enigmails keymanager.


Eclipse ide unable to locate files in localhost

I'm guessing you haven’t made any changes to the default apache config so the apache server is looking for your files in /var/www/

You need to learn about Apache and configuring it there is an abundance of info out there.

the quick and easy way to fix this for development use only is:

sudo ln -s /path/to/project /var/www


How to recover broken dpkg after lucid-bleed ppa-purge?

I was able to solve this with minimal impact to the system, its installed software and services, and its stability, by downloading the tar 1.23 source, compiling and installing it.

Then I was actually able to force downgrade dpkg sudo apt-get install dpkg=1.15.5.6ubuntu4.5, which I wasn't even able to do, and all is back to normal! Phew!


install libpq-dev broken on ubuntu 14.04

You could try install it from source code.
For libpq-dev, you must install PostgreSQL

That link show you how to install:

https://www.postgresql.org/docs/9.6/static/installation.html


A person going by the name of Norbert http://www.vronlinux.com/articles/i-am-using-vr-on-linux-with-my-vive-and-vrui.37 got the Vive going using Vrui http://idav.ucdavis.edu/~okreylos/ResDev/Vrui/Download.html


set up two factor authentication with Google but only if a public key is not used

I believe that there are location/user specific options that can be specified in the /etc/ssh/sshd_config file.  Take a look at the man page.

Also I believe that you could make modifications to the pam.d authorizations to accomodate what you wish as well.  I'm not much of an expert in pam modules however but that is definitely another choice.


After Update from 14.04 to 16.04 all the menus disappeared

Did you try restarting unity?

Try:

In terminal run: "sudo service lightdm restart"

If that that didn't work, in terminal run:
"unity"


Both of them are supported by nvidia

check this external link from nvidia


It was a BIOS firmware problem, While the motherboard supported 8gb of RAM, the motherboard firmware (Dell) didn't.

After updating this it worked - for anyone reading who has a Dell Inspiron 530, with a foxconn g33m motherboard, I did have to use HPUSBDISK tool to create a DOS usb to flash the bios, as I received memory errors when I used Rufus


What's the preferred method for connecting to a PPTP VPN under KDE?

From Network-Manager, select VPN connections, then click Configure VPN. On the next screen click Add and then Create to configure the PPTP VPN options. With my setup I had to ensure that I went into the Advanced area and selected Use Point to Point encryption and then turned off the Allow BSD data compression, Allow Deflate data compression, and use TCP header compression.

Your configuration might have to be different based on settings with the VPN server.


How to launch (run) specific shell script using double click ubuntu

First off, you don't need to do that. If you want to launch MATLAB from the Unity menu, you don't have to change those permissions and probably shouldn't.

All you have to do is run sudo apt-get install matlab-support in Terminal (Ctrl+Alt+T). That should make it so you can access MATLAB via the Unity launcher. You may have to log out and back in again to make all of changes take affect.

Then, if you don't want to have to run MATLAB as root each time, you'll want to run cd ~ && sudo chown YOURUSERNAME -R ~/.matlab/.

However, you only want to launch it by going into that folder and double-clicking on the executable, run these commands:

sudo chmod +rwx /usr/local/MATLAB/MATLAB_Production_Server/R2015a/bin/matlab
sudo chown YOURUSERNAME -R /usr/local/MATLAB/MATLAB_Production_Server/R2015a/


Pinging/connecting to server.domain.local never works, but server does when the search domain is specified

If you haven't a valuable name resolution (DNS) in your network add the needed addresses to /etc/hosts.

See man hosts


Allowing VNC only for specific MAC Address?

Actually that doesn't make it safer at all. MAC addresses can be configured ("spoofed") on most OSs for most NIC models. An attacker could sniff traffic and simply spoof your configured MAC address.

Instead make your VNC listen on loopback and SSH into the machine, using the SSH tunnel feature to connect to VNC.

If you insist on using your insecure method, iptables (netfilter) can do that:

iptables -I INPUT -m mac --mac-source 00:XX:YY:ZZ:AA:BB -j ACCEPT

this rule added to a chain with the DROP (or REJECT) default policy would accept from the given MAC only. Can be combined further to check for other parameters as well. Basically I would hand it off to a different chain if I was you, checking first on the upper layers for connections to the relevant port(s) (5900?) and then do the MAC filtering. After all you only want to filter this single service to be available from this MAC only - not any service. If you are only interested in the MAC and the port do:

iptables -I INPUT -p tcp --destination-port 5900 -m mac --mac-source 00:XX:YY:ZZ:AA:BB -j ACCEPT

Note:
-m mac requires the module mac (for netfilter), so this has to be available.

I would only use such methods to delist myself from a blacklist. For example I have configured a tar pit for SSH connection attempts (similar to what sshguard and similar programs do). Just like port knocking it could make sense to use a certain MAC as a signal to delist (i.e. remove from the blacklist) the connecting IP. But as a security mechanism by itself, no way. Too easy to fake.


How to run patching program as sudo with Wine?

Never ever run wine with sudo ! This will give windows viruses the power to change all your system, because you give them super-user permissions.


how can I prevent all people from renaming a file?

Directories are special files containing a list of named entries. Each entry references another file object, which in turn contains the locations of the file content on disk. When you create, move, or delete a “file” (and remember that directories are files too) you're actually creating, renaming, or deleting entries in a directory list – you're changing the directory the entry is part of. Since you need write permissions to an object to change it, you need write permissions to a directory to create, move, or delete entries within it.
Example
Let's assume you have a file x in directory a. To rename x a user needs write access to a. To revoke write access from anyone, who isn't the owner of a do:
chmod go-w a

This revokes (-) the “write” permission (w) for the classes “owner group“ (g) and “other“ (o).


Building multiple packages for deployment on different Ubuntu versions

There is no single-command solution to do this, but the tools definitely exist to make it relatively painless:

debootstrap can create a pristine, minimal Ubuntu installation in a self-contained directory
schroot allows you to manage multiple chroots, keeping them clean for later use
mk-schroot can be used to automate the schroot setup and management
Given a .dsc file (generated with debuild -S), sbuild will chroot into your pristine chroot, install any dependent packages, and build your sources.

this is basically what the launchpad build servers use to build source packages and put them in the Ubuntu archive.

In general, using a pristine chroot is good practice, as it ensures that the package does not depend on any customised setup on your build machine.

The setup process would involve creating a new schroot for each Ubuntu version you'd like to target. This is fairly straightforward: use mk-sbuild to build yourself a new chroot. Something like this is what you want:

mk-sbuild --arch=amd64 --name=lucid lucid

This will guide you to create a chroot called 'lucid-amd64', and prints out the following helpful information when it's done:

Done building lucid-amd64.

 To CHANGE the golden image: sudo schroot -c lucid-amd64-source -u root
 To ENTER an image snapshot: schroot -c lucid-amd64
 To BUILD within a snapshot: sbuild -A -d lucid-amd64 PACKAGE*.dsc

So, once your chroots are setup, the build process would be:

From your source pacakge's top-level directory, debuild -S to create a source package, including <package>_<version>.dsc
Run the build: sbuild -A -d lucid-amd64 ../<package>_<version>.dsc

For more info, the manpages for mk-sbuild, schroot, sbuild, debootstrap and debuild are quite comprehensive. https://wiki.ubuntu.com/DebootstrapChroot has some good info about building and configuring the chroots. Also, there's #ubuntu-devel on irc.freenode.net if you need a hand.


How to disable Large Cursor after installing Ubuntu with Accessibility Option ON (High-contrast,..)

Using a graphic interface:

Install Unity Tweak Tool
Run Unity Tweak Tool → Cursors: Uncheck Use Large Cursors

Otherwise, a quick fix:

Open terminal Ctrl+Alt+t
Run:

dconf reset /org/gnome/desktop/interface/cursor-size


Go to the Firefox menu → Edit → Preferences
Click on the Advanced tab
Click on the Encryption tab below Advanced tab.
Click View certificates
In the Certificate manager window, Click on the Import button. Then locate the .cer file, and then click Open. The cert file will be imported.

Hope this will help.


Upgrade from Kubuntu 13.10 to 14.04 fails at 65%

My upgrade from Kubuntu 13.10 to 14.04 broke as well, but after the reboot.  Grub wouldn't boot.  Reposting below.  This was the only operating system on the disk also.  I don't use the cairo-dock though.  I suppose you could uninstall cairo-dock, reboot and see if it boots normally,  and restart the upgrade, then install cairo-dock if the upgrades completes successful.

worst upgrade I have gone through (13.10 to 14.04). Upgrade portion before reboot went fine. After it restarted, it broke grub, wouldn't boot. Had to go through the following steps to rebuild grub from a 13.10 LiveCD; This was in VirtualBox 4.3.10 r93012 VM.

Note: use spaces before and after "&&". For some reason this post wouldn't insert the spaces

sudo mount /dev/sda1 /mnt

sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/sda

grub-install --recheck /dev/sda

update-grub

exit && sudo umount /mnt/dev && sudo umount /mnt/dev/pts && sudo umount /mnt/proc && sudo umount /mnt/sys && sudo umount /mnt

then had to re-enable PPA's through "Software and Updates">Other Software and clamtk's ppa can't be found.


Getting php to copy a folder to home directory of user

To answer my own question , the solution was to give write permissions to the directory scripts using

chmod g+rx /home/pi/scripts . If that doesn't work you can create a shortcut link to the folder using

ln -s or create and Alias to the shortcut in your webserver's configuration file .


Is there any way to dual boot Windows 7 and Lubuntu?

Why not? Make some space in another partition using a partitioning tool (gparted) and install Lubuntu there!


There's no problem if you remove a package such as "ubuntu-desktop". It's just a dummy package. I've removed it many times to get rid of apps I don't use. I really hate the way Ubuntu links packages like that. It makes it seem scary. That said, is it really taking up that much space for one app?


As for me, you chose difficult way.

There is specially prepared PPA by Martin Wimpress with both client and server for Minecraft:

sudo add-apt-repository ppa:flexiondotorg/minecraft
sudo apt-get update

sudo apt-get install minecraft-installer
# sudo apt-get install minecraft-server-installer # for server


bootstrap fails with Windows Azure: XML Schema validation error in network configuration

We have seen this error in the past, but not for a while now. The Azure provider has seen various fixes recently, and I'm pretty sure this particular one is no longer an issue. See: https://bugs.launchpad.net/juju-core/+bug/1304778


How can a resolve issues relating to autosave, multiple instances, launcher and errors in LibreOffice?

If LibreOffice doesn't detect the Java runtime, you need to tell it where it is.

Open a LibreOffice program.
Menu: Tools --> Options
In the dialog: LibreOffice --> Java
Check use a java runtime environment if needed; use the Add button to add the location of your installed runtime.
Click OK


How to create a GRUB2 entry for a "LiveSD" Card

As your USB stick comes up as sdb, the code should be:

#!/bin/sh
 exec tail -n +3 $0
 # This file provides an easy way to add custom menu entries.  Simply type the
 # menu entries you want to add after this comment.  Be careful not to change
 # the 'exec tail' line above.
  menuentry "PLEASE BOOT ME I AM THE SD CARD" {
       set root=(sdb,1)
       linux /vmlinuz root=/dev/sdb1 ro quiet splash
       initrd /initrd.img
 }

if the OS is installed in the first partition of the USB stick.  ;-)


Unable to connect to the Internet via LAN despite the connection showing as established

Since you decline to say what you have as far as hardware it would be a WAG answer. Therefore here goes.

Your NIC has the wrong drivers installed. Consult one of these links provided

Networking Tutorial

Network Manager

Ubuntu Wireless

How to install Ethernet Drivers


Youtube streaming is not working on totem

I think the problem is that YouTube made some changes in the site on July 22nd that affects all download extensions and plugins. Basically, is not allowing to get the videos using the old urls, so the player throws that error.

I suggest you try my extension FlashVideoReplacer. It allows to watch YouTube, Vimeo and Blip.tv videos using totem, gecko-mediaplayer, gxine, kaffeine, mozplugger, or xine plugins. The beast feature is that it replaces the video on site, so you don't need to start standalone players or download the video. There are limitations tho. It doesn't work on YouTube channels, just single video pages and flash needs to be installed to work.

The extension is for Firefox, but I'm working on versions for Opera and Chrome.


you can use EasyBCD

after installing windows, install EasyBCD application
at new entry tab, add grub2 and chooses ubuntu partition

Download link: http://neosmart.net/EasyBCD/


Ubuntu vnc4server no working session only terminal

why you load two gnome-session ? if you want to use gnome with vnc server on ubuntu, install these packages and use this xstartup file for gnome

# apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

xstartup file

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &


Boot issue with Win7 (ntfs) and Ubuntu 14.04 (ext4) on separate hard drives

If you are using UEFI boot make sure your partition table GPT formatted. You did not mention which bootloader you are using, but you should update the grub. sudo update-grub.

I found this on microsoft site:

  When you deploy Windows® to a UEFI-based PC, you must format the hard drive that includes the Windows partition by using a GUID partition table (GPT) file system. Additional drives may use either the GPT or the master boot record (MBR) file format.

So yes, you probably need to convert your partition from MBR to GPT. But before you start it you check this below:

I did some google search and I found this. It may help you. Further instructions:

turn off "fastboot" in Windows 8
disable "Secure Boot" in the BIOS
update grub

Enter in BIOS. You should see both SDD in the boot sequence list.
If you can't find both of them, you should update your BIOS.

After the update you still can't find them, may your SSD is fragmented or your motherboard has driver issue.


Chrome versus Firefox - which is better?

This is the kind of question more applicable to fora - you'll be getting a lot of radical posts :)
Anyway, I find Chrome slightly buggy, and in general that Firefox works much better than Chrome on Ubuntu, even speed-wise. And it is completely open-source, updates very often (next three versions all coming this year with loads of new features), and has all the add-ons you could possibly need. I myself was a Chrome-fan till a few months back, and, well, I'm not turning back. If you like Chrome's looks (like me), you can get all of them by using the right themes (Chrome-FX) and add-ons. You can even get downloads to open in a new tab, put downloads in the status bar, anything. It is also much more customizable, even if you don't use the about:config page.

One more thing I notice is that, on Ubuntu (but not Windows), having many add-ons slows Chrome down, but not Firefox.


In 12.04/12.10, what calls the precise/quantal-wallpapers.xml files?

The Appearance module of gnome-control-center is what loads the XML files in /usr/share/gnome-background-properties/ to get a list of installed wallpapers. It always loads all of the xml files in this directory.

There is no script similar to the grub thing for these XML files. The XML files are static and included in packages. If you still have the precise-wallpapers.xml file there, then you still have the ubuntu-wallpapers-precise package installed after an upgrade. If you've ever altered the settings by choosing a different image as your background, then upgrading will not automatically cause the background to change to the new default.


What is causing my spacebar to randomly stop working?

The NotifyGrab is the give-away clue. The only time I've seen that is when the window manager has a global binding which supersedes the window itself.

You can see this clearly if you start xev and go inside the window and press PrtScn where the window manager has arranged to handle PrtScn. In order to do this, the X event model has to FocusOut of the current window with a NotifyGrab event so that the manager can act on the input.

Now as to what is getting your spacebar or v key bound to a window manager action, that's a different - and harder - question.


How to modify applications.menu file as root?

You can use nano

sudo nano path/to/file

You can also use gedit

gksudo gedit path/to/file


global menu not working on some apps like evince and nautilus

Please see https://bugs.launchpad.net/ayatana-design/+bug/1131664

There are people working on fixes to use classic menus instead of the new simple menus.


VLC does not play any video or mp3 file, closes when a file is opened

Run this to clean your vlc settings, then try running vlc again

rm -rf ~/.local/share/vlc/


What means if [ "x/usr/bin" != "x" ] in bash script?

It's a well known bashism.
If a variable (say $foo in this example) might be empty or might hold a value,
If foo="", then
 if [ "$foo" = "bar" ]

expands to
if [ = "bar" ]

a syntax error :-(
If one uses
if [ "x$foo" = "xbar" ]

it expands to
if [ "x" = "xbar" ]

No syntax error.
There are better ways to check for empty variables, like
if [[ -n "$foo" ]]


Linux installer keeps freezing, unable to install any Linux

For the Asus X541U (same model in your other question), someone reported having to add pcie_aspm=off to the grub settings, this was confirmed by another user with U541 here

Quoting https://ubuntuforums.org/showthread.php?t=2303880&p=13418305#post13418305:

  When trying to install, at the initial 'grub' screen that asks you to select (1) Try Ubuntu (2) Install directly (3) OEM install etc. Place the selector over option 1 and press the letter “e” to edit the grub boot command. On the third line just after “quiet splash”add the string “pcie_aspm=off” and press F10 to continue the boot. This will allow you to start 15.10 from a USB/DVD and install to disk.

If the above is too difficult for you, you can try booting into live cd, then delete all existing partitions on your system (using GParted) before installing either 1) Windows again, or 2) an older version of Ubuntu such as 16.04 (in case your hardware has a problem specific to 18.04). 256GB reading as 238GB is perfectly normal since you don't actually get 256GB, but only 256GBits.

Update: The asker went with an install of Ubuntu 16.04 (likely due to some config issue while installing Ubuntu 18.04 on his hardware - Asus X541U). Having at least a working installation of Windows is highly recommended for beginners when their hardware needs some slight modification/tweak to get Ubuntu to work, since they will continue to have a working system while trying to fix Ubuntu on a dual boot. With some basic understanding of partitions, dual boot isn't much more difficult than a regular install (just shrink the Windows partition, and use freed up space for the Linux partition).


Windows 10 Hangs in VirtualBox in ubuntu 16.04

I just fixed the same issue by installing the latest version of virtualbox. So Windows 10 doesn't hang on virtualbox 5.1.26. The answer for this Virtualbox Windows 10 Guest installation is freezing up in 14.04 question contains stepwise instruction.


Problem setting the default wired connection

You can check automatically connect on connection_1 and uncheck it from other connection :


Try typing in

vga=normal nomodeset

in the command line just below the menu asking if you want to Try Ubuntu without installing"...  The focus of the cursor is already in the command line so back the cursor up before the

--

and type in the extra commands above.  It forces the linux kernel framebuffer to load normal vga mode.  I know I have seen a table of all the available values you can specify for vga mode but I cannot remember where I saw it. Setting it to "normal" worked for me when all other settings did not. Upon more research the nomodeset does this:

  Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.

So use both.  I found after much digging that this was a graphics issue.

-Steve  (noob Ubuntu user)


What version of flash do you need to upgrade to? Unforunately the Adobe Flash Player about page states that only only Chrome/ium supports versions of flash higher than 11.2.

You could have a look into installing the Fresh Player Plugin. I haven't used this so I'm not 100% certain it will work for you.

As a last resort you can install Chromium from the Ubuntu Software Center by just searching for chromium and then installing it. Alternatively you can install Google Chrome by downloading the .deb file then double clicking it once it has downloaded, from there it will install in the software center. I personally use Chrome and flash works absolutely fine for me.

Hope this has helped you.


Can't Connect to Mobile Broadband 14.04 LTS

You may try connecting from the command line. First create a new mobile broadband connection. To do so:-

Connect your modem. Then select 'New Mobile Broadband connection...' from the panel(aka menu bar) as shown below.

Then in the following window press continue.
Then select your country.
In the subsequent window select your ISP.
Then press 'Continue' and then 'Apply'.

Now open the terminal with Ctrl+Alt+t . Then type the following command :-

nmcli connection

An output similar(not exactly) to the one below will be shown :-

NAME                      UUID                                   TYPE              TIMESTAMP-REAL
Wired connection 1        ef7249c9-13bf-4d4c-9d5e-14c79371be9e   802-3-ethernet    Monday 21 April 2014 11:23:20 AM IST
BSNL/CellOne New GPRS/3G  a1f89d7a-12d0-4ef8-b76d-cb6e31b11697   gsm               Monday 21 April 2014 03:22:39 PM IST

As you can see the output displays all the connections that you have created. Now in the above case if I have to connect with 'BSNL/CellOne New GPRS/3G' then I will type the following command:-

nmcli connection up uuid a1f89d7a-12d0-4ef8-b76d-cb6e31b11697

As you can see I have typed the UUID of the connection that I want to connect to. So according to your connection you have got to give the UUID in the above command.


This is documented in init(5); you can add the following line to your /etc/init/syslog-ng.conf to see output:

console output

Alternatively, you can see output from all upstart scripts when you add the following to the kernel boot parameters:

INIT_VERBOSE=yes

You can do that temporarily by editing the parameters in the grub menu during boot, or (more) permanently by editing /etc/default/grub and adding it to GRUB_CMDLINE_LINUX, then afterwards run update-grub.

For more information and best practices,  see The Upstart Cookbook.


How to configure TV and video recording and pausing?

If you are looking for more DVR like capability, check out MythTV.  It might be overkill, but it might give you something you didn't know you even wanted.


Where can I apply for jobs at Canonical?

Canonical is typically hiring for many positions all the time, what I would recommend you do is follow the trends of what Canonical is releasing.
What jobs are available now
First, you should visit the Canonical jobs offering page and see what positions (and the qualifications) they have.
Get involved
The best way to learn about different stacks being used by Ubuntu, the Ubuntu Phone, and other Ubuntu products is to start working on them! You can contribute to the project without being a Canonical employee which might be a great way to learn a new technology, language, or stack. While I can't speak to if this actually helps candidates get hired or not I imagine it doesn't hurt to be acquainted with the project the company works on that you aspire to work for.
Canonical is a growing company, so there's generally going to be a need for new people in different arenas of the industry. Keep your eyes open for jobs you're interested in but the goal should be "this interests me I want to learn it" not so much "I must learn this to work here"


/boot has run out of room and cannot be resized

1
Ok, so I backed up my entire system using APTIK, wiped out my RAID1 pair and installed the latest LTS Ubuntu 18.04 version. Then I did a restore. Had to do a little tweaking here and there (a lot actually) to get it back to the same as it was prior to the reinstall but I got there, all in one day.I notice that now there is only one big partition for the entire file system so space for /boot will no longer be a concern. Thanks to all who gave me advice here. I think this was the most comprehensive solution I could do to resolve this issue. –


how to write a script that will execute xampp start and stop

You'll need to do 2 things to get what you want :

1) Create a simple bash script to start lampp

I've written it for you! It starts lampp if it isn't started and stops it if it's already started :

#!/bin/bash                                           ##This is a bash script

                                                      ##PREREQUISITES
if [[ ! -f /tmp/lampp-startstop ]] ; then             # if temp file doesn't exist
 echo 0 > /tmp/lampp-startstop 2>&1                   # create it and write 0 in it
fi

                                                      ##IF NOT RUNNING
if [ "`cat /tmp/lampp-startstop`" == "0" ] ; then     # if temp file contains 0
 sudo /opt/lampp/lampp start                          # start lampp
 echo 1 > /tmp/lampp-startstop 2>&1                   # write 1 in the temp file
 notify-send "Lampp" "Program started." -i xampp      # send a notification
 exit 0                                               # and exit
fi

                                                      ##IF RUNNING
if [ "`cat /tmp/lampp-startstop`" == "1" ] ; then     # if temp file contains 1
 sudo /opt/lampp/lampp stop                           # stop lampp
 echo 0 > /tmp/lampp-startstop 2>&1                   # write 0 in the temp file
 notify-send "Lampp" "Program stopped." -i xampp      # send a notification
 exit 0                                               # and exit
fi

2) Create a shortcut that will launch that script (on the Desktop for example) :

A) Create a .desktop file on the Desktop :

gedit ~/Desktop/Lampp.desktop

B) Enter the following in it :

[Desktop Entry]
Name=Lampp
Comment=Start/Stop Lampp
Exec=gksu bash /PATH/TO/THE/SCRIPT
Icon=PATH/TO/THE/ICON
Terminal=false
Type=Application

=> Remplace the two /PATH/TO/THE/... by something. Icons are stored in /usr/share/icons/ and a good place for the script would be in your HOME folder, maybe hidden (hide by adding a . at the beginning of his name).
C) Make it executable :

sudo chmod +x ~/Desktop/Lampp.desktop

Note : the script isn't really checking if lampp is working, it is using a temporary file (disapears at reboot) containing 1 if you have used the script once (meaning it's started) and 0 if you haven't used the script (meaning it isn't started).
What does it mean ? That you have to only use this script if you want things to work : do not start lampp without this script and you'll be ok.

Note : you'll have to type your password in order to launch the shortcut. You could bypass that, but that wasn't your question so I will not explain that here.


You Can do a Full install to USB drive from Windows using Virtual Box.

From Windows install VirtualBox if you do not already have it, There are lots of instructions for this elsewhere.

Start VBox and make a new Ubuntu machine.

Start the Ubuntu machine and point it at the Ubuntu iso file.

When the process gets to the Try/Install window select "Try".

Plug in your USB and confirm it is visible to VBox.

Select the Install Ubuntu icon on the desktop.

When you get to partitioning select "Something else"

Select the USB as target for the install.

Continue the installation as normal until complete.

I have tried this with the latest versions of Ubuntu and VirtualBox.
(and with previous versions of each.

Sudodus, (mkusb), has been doing some work on installing Ubuntu to USB from Windows.
A Preliminary test version is here: https://ubuntuforums.org/showthread.php?t=1958073&p=13578487#post13578487
The test version installs a Persistent Live version to USB using image Writer, however a Full install version is possible.

Ubuntu also offers image files of Server but not Desktop.


Creation of separate home folder while installing two versions of ubuntu

During the installation process, Ubuntu will recognise the other partitions and give you the option to mount them, but unless you specifically set one of the partitions as your /home it won't determine it's a /home and use it. So, just to be clear, no Ubuntu 14.04 will not automatically use the /home from a previous installation.


Network service discovery disabled: What does this mean for me?

It looks like avahi-daemon is started when the network connection is established (/etc/network/if-up.d/avahi-daemon).
This notification is informing you that mDNS (Avahi) has been disabled. It's only used for a small number of applications that only work on the local network, it won't adversely affect your internet connection or DNS.

The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It's an Apple technology, but it's largely been ignored in favour of uPNP or DLNA.

To disable it, you must edit the file /etc/default/avahi-daemon as root:

sudo -i
gedit /etc/default/avahi-daemon

and add this line (or change it if already exists to):

AVAHI_DAEMON_DETECT_LOCAL=0

Source: http://ubuntuforums.org/showthread.php?t=1632952


Something is triggering the scrolling and it can be literately anything. My laptop had a little pointing stick/joystick between G H and B that had a wander, the reason is that any analog input should have a dead-zone where it knows it's in a zero/non-moving state. If your colleague uses the same brand/type it may suffer from the same build. subconsciously you could use your finger to be slightly outside of this dead zone.

The mouse sensor can be dirty or the surface is difficult to scan. The Page Down button may be dirty or stutter. The batteries might be empty or a radio source can randomly jam your signal path. There might be a virus or a faulty driver/module. Or you have another input device connected that triggers this.

From a few sentences it's impossible to determine the cause in your circumstance, so start experimenting and troubleshooting until you find the trigger.


The same thing happened to me but I was able to solve it. My solution was:

Turn off the PC.
Disconnect the HDMI cable.
Turn on the PC (without HDMI).
Log in.
Reconnect the HDMI cable.


Exact same problem in Xubuntu 20.04 running on Lenovo Thinkpad P53 running kernel 5.8.0-36-generic. I downgraded to 5.4.0-60 and everything works again.


You're using or incorrectly. The proper way to do this in your example would be:

if argv[1] == "-h" or argv[1] == "--help":

Or is a Boolean operator that describes what to do with two different comparisons. So what you have provided would be like saying

keep_going = False
if argv[1] == "-h":
    keep_going = True

if "--help":
    keep_going = True

Which doesn't make sense. Technically just having or "--help" is True because "--help" is a non-empty String.

In addition, thanks to Timo, you could use

if argv[1] in ("-h", "--help"):

Which is considered more the Python way

Lastly, you should be looking in to things like argparse for Python to properly handle arguments as they may not always be in the same order.

In the future, questions strictly regarding code are better suited for Stack Overflow which is likely better suited for programming questions.


Find data download from Ubuntu bash in windows 10 and vise versa

On Windows side you can just access the files from:

%localappdata%\lxss

On Linux side:

/mnt/c/

Server SSH keys would thus be in:

C:\Users\{user}\AppData\Local\lxss\rootfs\etc\ssh

and user SSH Keys in:

C:\Users\{user}\AppData\Local\lxss\home\{username}\.ssh

Where {user} is your Windows Username and {username} is your UNIX Username set during install.

PS. Don't go trying to delete or create files in explorer at the lxss location, that is REALLY not advised.

[edit]PPS. Great tutorial at https://sec.ch9.ms/ch9/5db6/8ee786b7-9fc5-45bf-94d0-16ea91765db6/P488_mid.mp4


How to transfer files from a Windows 10 computer to a Ubuntu computer?

Option 1: SAMBA
This is the high tech solution. It involves:
Step 1
Use the SMB (SAMBA) protocol in Windows 10 share all the folders you want to copy from the Windows laptop to the Ubuntu laptop. I can't help you with this as I don't use Windows much.
There are many tutorials on the Internet on this topic. Here is an example. In this tutorial, you will need to follow the option 1, and enable SMB1.
Step 2
Use the SAMBA client in Ubuntu to access the shared folders in Windows laptop. To do this, open the Files app in Ubuntu and select the Other locations on the left margin at the bottom:

Then click on the Windows Network. There you should be able to see the name of the Windows laptop. Click on that, and you should be able to see the shared folder, you shared in Step 1."
Step 3
Copy all the shared folders into Ubuntu "Home". You may want to copy the Documents, Music, Pictures, etc. in the corresponding Ubuntu folders by dragging the contents of those Windows folders into the corresponding Ubuntu folders as seen the left margin of the picture above.
Option 2: External Hard Drive
This is more expensive but easier option, as you don't have to worry about sharing folders, mess with read and write permissions, or network settings. Another good thing about this option is will will have a second backup of all your valuable data.
Step 1
Buy an external hard drive. You need to consider two things when buying a drive.
Disk Space
The drive should have sufficient disk space to store all the data in the Windows laptop. A 1 terabyte (1TB) external hard drive may be sufficient. However, you will have to decide based on how much data you need to transfer.
USB C
Your new Ubuntu laptop has only USB C sockets. The external hard drive must be compatible with this smaller sockets as you will be using the external hard drive with the new computer.
Most USB C external hard drives come with either a second cable or an adapter so that it can be used with older USB sockets (USB A sockets). Make sure the hard drive you buy has either a second USB A cable, or an adapter.
An example
This link shows an example of such an hard drive. I have never used it and I do not endorse this site or this product in any way.
WD 1TB My Passport Ultra Silver Portable External Hard Drive, USB-C - WDBC3C0010BSL-WESN
Step 2
Plug in the external hard drive to the Windows laptop. Copy the folders you need into the external hard drive.
Safely remove the external hard drive. Do not unplug the hard drive until Windows tells you it is safe to remove.
Step 3
Plug the external hard drive to the Ubuntu laptop. Copy all the folders into the Ubuntu laptop.
Safely remove the external hard drive. Do not unplug the hard drive until Ubuntu tells you it is safe to remove.
Hope this helps


Showing the date on the system tray with the metacity flashback (ubuntu 18.04)

run the below command to show the date

gsettings set com.canonical.indicator.datetime show-date true

alternatively use dconf-editor GUI tool and search for datetime and make your changes accordingly..


Partitions on Multiple Harddisks Ubuntu 16.04

There are several ways to do what you want:

Separate mount points -- You can create whatever partition(s) you want on each disk and mount them wherever it's convenient. Given your disks' sizes (500 GB apiece), chances are you'll be using most of all of them for user files, so you'd probably mount most of this space somewhere within your home directory -- say, /home/aijaz/ssd1 and /home/aijaz/ssd2. This gives you explicit control over where any given file goes, which might be helpful if you want to take advantage of SSD speeds for some files but not others, or if one or more disk is removable and you plan to periodically remove it to transport big files elsewhere.
LVM -- In Logical Volume Management (LVM), disks or partitions (logical volumes in LVM-speak) can be combined into a volume group and then split up into logical volumes. The point of this is that the logical volumes can be any size you want -- smaller or bigger than the physical volumes. In your case, you could put most of your disk space into a volume group and then create one big storage area that spans most of your available disk space, giving you a 1000 GB (or larger) filesystem that you might mount at /home.
RAID -- You could set up a software RAID 0 array across your two SSDs, or potentially even across both SSDs and your hard disk, to achieve effects similar to LVM. LVM is more flexible for your use case, but RAID is, in some ways, simpler. (RAID levels above RAID 0 can be used to improve reliability, which LVM can't do.)
Spanning Btrfs -- The (relatively) new filesystem Btrfs provides disk-spanning features similar to those in LVM or RAID 0; you can use it to make one filesystem that covers multiple devices.

Any of the last three options has the drawback that they make your filesystem more vulnerable to disk failures -- if one disk physically fails, you're likely to lose access even to files stored on the good disk(s), and recovery becomes more complex. OTOH, the flexibility of these approaches can be significant, and there can be performance benefits because access can span multiple disks, rather than be limited by the performance features of just one disk. (I'm not sure if this performance benefit would be significant for SSDs, though. It's certainly an issue for hard disks.) If you were to span your SSDs and your HDD, you'd likely get either variable speed or speeds between those of the SSDs and your HDD, depending on how you set it up.

One important question, and perhaps complication, is how the performance of the HDD vs. your SSDs interact. If you put the main OS installation on the HDD, as specified in your question, chances are its performance will suffer compared to what it might be if it were on the SSD. Personally, I'd probably create an LVM setup that spans at least most of both SSDs, and maybe all three disks, put the root (/) filesystem inside the LVM as a logical volume, and create a /home logical volume that spans most of the rest of the SSD space. I'd then treat the HDD as slower storage for rarely-accessed files, or those that don't need great speed -- essentially, combining the "separate mount points" and "LVM" configurations. OTOH, you might have need of super-speedy access to user files, in which case doing it as you outlined above (with the OS on the HDD) might make more sense. If you don't care much about speed, and want a simple directory layout, putting (almost) everything in one LVM volume group and letting the access speed vary might make sense.

Note that with the LVM and RAID setups, having a separate /boot partition makes sense, because this puts the kernel and related files outside of the LVM/RAID configuration. Although GRUB 2 can read Linux LVM and RAID setups, this feature is relatively new, and not all boot loaders can handle this trick, so if you don't have a non-LVM/non-RAID /boot partition, you'll be limiting your choice of boot loaders. Also, most new computers boot natively in EFI mode, which requires a separate EFI System Partition (ESP), which must be outside of LVM and (Linux software) RAID.

One final note: 250 GB for the root (/) filesystem is almost certainly excessive. Most installations only need 10 GB or so for the basic installation, although you could go to 30-50 GB if you want to have lots of space for expansion. If you need more than that amount of space outside of /home, you might want to consider splitting something else off. For instance, a server computer might need lots of space in /var or some other location where the server stores files.


Unable to boot my system after upgrading to 12.04

I had this problem and solved it.

Here is the link to my answer on another same question:

https://askubuntu.com/a/126542/56649


You have the same feature in Clonezilla for restoring as you have for the backup.

When you're backing up the choices are:

savedisk  - Save the whole disk
saveparts  - Save partitions

When you are restoring you have the same options:

restoredisk  - Restore the whole disk that was saved
restoreparts  - Restire partitions from the disk that was saved

To restore a single partition just go into the restoreparts option and browse to where you saved your disk.  Then use the selector to pick the partition you want to restore.

As far as which partition has your root /, or your /home, you would have to know the partition number and can select that choice to restore.  During the restore process you will have the option of choosing where you want to restore it to.

Restoring a full drive

If you were going to restore the whole drive, you would choose the restoredisk instead of restoreparts.  Then you would proceed to select the drive you will be restoring the backed up drive to.


Hide the `terminal` launcher icon for a terminal app launched from Unity dash/launcher

I found the neovim-gnome-terminal-wrapper Github project which does exactly what I need.


How do I shut down X in order to install nvidia drivers/looking to install gl.h, glut.h (opengl files)

You have to switch system to lower runlevel. By default, X starts in runlevel 5.
Follow this article: Debian and Ubuntu Linux Run Levels | Debian Admin

you can change runlevel at runtime by executing e.g.init <n> or while booting by appending the number of runlevel to the grub boot string.


1) Right click on the terminal window and select Profiles -> Profile Preferences

2) Go to Title and Command tab

3) Check "Run a custom command" and in the Custom Command field, add su yourusername

4) Open a new window to check if this works

Suggestions:

Some users run into a problem with su command, mainly this error su initgroups: Operation not permitted . In such case , use sudo su yourusername. If you do that make sure that you add line Defaults    timestamp_timeout=7 in /etc/sudoers file so that after 7 minutes if someone wants to run something with root privileges , the won't be able to, because sudo has timed out. And it's a good security practice in general


In the bug listed https://github.com/aristocratos/bpytop/issues/154 and also in the installation instructions the following lines should be ran after installation:
sudo snap connect bpytop:mount-observe
sudo snap connect bpytop:network-control
sudo snap connect bpytop:hardware-observe
sudo snap connect bpytop:system-observe
sudo snap connect bpytop:process-control
sudo snap connect bpytop:physical-memory-observe


Google calender Evolution sync no longer working

I was using evolution calendar on my laptop when I was using Gnome-Shell and this kept happening to me. I had to actually remove the account from evolution calendar and add again it to make this stop happening. If you go to accounts you can delete your previous account and then just add it again and it should be fine.

Here is some info on adding accounts if you need it.


HPLIP cant detect USB printer with hp-setupbut printer works

Fixed with install HPLIP-3.17.9

All steps answers default except: It will ask if would you like to have this installer install the hplip specific policy/profile. Type y. An I recommend answer y for all hplip's versions.

Done: Scanner and  Printer works!


Connected to wifi but no Internet using a usb adapter

It looks like you do not have a "default route" set up.

ip route

will show you your routes.

iwconfig

will let you find your Wifi device name (device names are in the first column - pick the one that does NOT say no wireless extensions.

For the following example, to set up a "default" route on wlan0, where <IP> is the IP address of your router,

sudo route add default via <IP> dev wlan0


Kubuntu - Dolphin panel - clear “Recently Saved”

I was able to clear "Recent Files" and "Recent Locations" by going to
Application Launcher > "History" tab

There should be a section for "Applications" and a section for "Documents".
Right-clicking any item in either list should give you an option to "Forget Document" and "Forget All"
This will clear the list in both the Application Launcher, and in the "Recent" panel of Dolphin.


I think it depends more on the graphics card and the drivers.

You are able to use 11.04 without problems as long as the resolution is higher than 1024x768.(I prefer 1280x800 or higher)


I'm assuming you're trying to make a bootable windows installer. There is a great program out there that I have used in the past called WinUSB. This program allows you to make a bootable windows installer, just like you can with LiveLinuxUSB Creator and such, but with Windows. To install, open Terminal and do the following:

sudo add-apt-repository ppa:colingille/freshlight

sudo apt-get update

sudo apt-get winusb

To actually create the drive, open WinUSB, select your .iso/cd-drive, select your usb flash drive/hard drive at the bottom, and click begin.


installing drivers for intel 910 series SSD (data center hdd), how it it possible?

You can try the .rpm package, its nothing but a different package type.

Theres a tool called Alien that adds .rpm support to debian variatives which Ubuntu is. The 910 works without special drivers in Ubuntu 14.04 you can partition, format and mount the 4 partitions as you like.


Changing the brightness on the Lenovo T410

The fix here:

http://www.thinkwiki.org/wiki/Category:T510

worked for me after a restart. Just be sure to backup your xorg.conf file beforehand (you can find it in /etc/X11/)

My xorg.conf looks like this now in its entirety, and it works fine:

Section "Device"
        Identifier      "Default Device"
        Driver  "nvidia"
        Option  "NoLogo"        "True"
        Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection


As you can see in dpkg source:

errors.c uses <errno.h>

errno error codes can be found here


Installed Ubuntu 12.04 I can't connect with internet. There isn't established a connection with the router

You didn't forget any thing. It happened with me also. So you are not able to connect through wifi networks right? Have you tried connecting using a wired cable?

Actually it is the driver issue which is common to many people. What you've to do is:

Connect your system with wired internet connection
Execute following command in terminal to search and install for additional drivers:

sudo jockey-gtk

It will search available drivers and tried to install the missing one.
When finished you'll get that your wireless drivers has been installed. Just re-start your system once.

Hope it helps you. Reply if you need any clarifications.


Take a backup of /var/lib/dpkg/status:

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.old

Noe open  the file /var/lib/dpkg/status:

sudo gedit /var/lib/dpkg/status

Search through the file for the entry of mysql-workbench-community usnig Ctrl+f, delete that entry then save and close the file.

Now run :

sudo apt-get update


If I understand correctly, you don't just want to stop the account, but delete all associated data? That will also remove your Ubuntu SSO, which means that accounts on sites you've logged into using those credentials (like possibly this one), will also become unavailable unless they have special features to re-associate accounts.

I don't think that's possible using the webui, so you should contact customer support: https://one.ubuntu.com/help/contact/


Did Synapse forget everything and so why?

I see Michal Hruby provided a solution to this problem here bug 705944 at Launchpad

First stop zeitgeist

zeitgeist-daemon --quit

Then go in the zeitgeist local directory

cd ~/.local/share/zeitgeist/

and remove the fts.index file

rm -rvf fts.index/

Finally restart zeitgeist

zeitgeist-daemon &

At which point zeitgiest will start to rebuild the index it may take a while depending on how many files and folders you have requested to be indexed.

Hope this helps.


Touchpad Scroll doesn t work Asus R510JK

You have a FocalTech touchpad. The drivers are not integrated in the Ubuntu kernel yet. But there is a package that builds a module here:

https://launchpad.net/~hanipouspilot/+archive/ubuntu/focaltech-dkms

You can try instructions here:

http://askubuntu.com/questions/609892/touchpad-not-recognized-on-asus-n550jk-focaltech


DoTA 2 freeze when trying to open audio settings (Ubuntu 18.04)

You can go to system settings and sound. Instead of going from dota open steam settings and change audio from there. You should get a screen like this ->


$ chmod 0000 Foo
$ ls -l
d---------  2 myuser mygroup 4.0K Aug 29 20:33 Foo

d--------- means a directory with 0000 permissions

Here is how i 'repair' permissions on a 'in /home/$USER' directory:

# recursively Restore ownership of directory
sudo chown -R $USER:$USER /home/$USER/Path/To/Dir/

# Set perms on directories
find ~/Path/To/Dir/ -type d  -exec chmod 0750 {} \;

# Set perms on files
find ~/Path/To/Dir/ -type f  -exec chmod 0640 {} \;

# Set perms on sh script files
find ~/Path/To/Dir/ -type f -iname '*.sh' -exec chmod 0750 {} \;


Uknown PHP script taking 100% of the CPU

As PHP needs a web server to run, you can stop the web server to kill the PHP process. Before doing that, though, you might want to check running services to see if there's anything suspect:
systemctl list-units --all --type=service --no-pager

This will give you a list of 100+ services. See which ones are active and what they do. If you don't recognize a specific service, run it through a search engine to see what comes back.
If you can't find anything that looks suspicious, shut down the web server and take a look in your /var/log/ and /var/log/apache directories to see if anything is complaining that the web server has gone away.
Stopping Apache:
sudo service apache2 stop

Stopping nginx:
sudo service nginx stop

Hope this helps you trace down the errant process.


Convert ubuntu vm into a physical machine when the host is a Windows system

Converting a VM into a physical installation is extremely difficult and usually ends badly.

The only way to really proceed is to do a fresh installation of Ubuntu onto your hard drive, and then manually copy data you want to keep out of the VM to external USB drives or such, and then copy back into the fresh install.


Right click on any pdf file and choose Properties. Under the 'open with' tab, you will find the applications to open PDF files. Choose your application of choice and then press the 'set as default' button in the right bottom corner.

See screenshot below:


PIN request at each login after update to Maverick

I don't know if this will work or not but try adding the word "auto" in front of the name of your 3G network. I had a similar problem with my WPA wireless connection on autoconnect. Changing my network name, "Vidnet", to "auto Vidnet" fixed the issue with me.


By looking at the GitHub repo, it seemed it is the kernel source. If only that file is modified, copy that file into the source and recompile.


Calibre is a pretty powerful tool for converting things into ebooks in various formats. Available in a Software Centre near you!

Don't be deceived by its less than beautiful UI, it can do a lot.


unable to connect to mongoDB getting error

you may have with mongo lock i think this may fix your problem

sudo rm /var/lib/mongodb/mongod.lock
sudo service mongodb restart


Cannot connect to the Internet after removing python3 from Xubuntu

Many ubuntu tools use python3 for their work, and expect the pre-installed version, and can stop working if it is removed or upgraded. It's best not to touch the original python3 if you rely on Ubuntu tools.

Yes you can install again, using 'something else', selecting your existing partitions but ensure you do not have format checked. That option will

take note of your added software
erase system directories
install new system
add back software you had added
won't touch user files unless you formatted

Note: this assumes you don't format. Also some programs do store config files in system directories thus they will be lost, but that applies generally only to server applications (desktop programs store their files in $HOME or your user directory so won't be touched).

Of course you should backup first, I'd do it from 'live' media just to be safe, but you'll no doubt already have backups in place, but better safe than sorry.

Your alternative is downloading python3-minimal (https://packages.ubuntu.com/eoan/python3-minimal) using wget (from another box & walk across on thumb-drive if necessary) and then install dpkg, and you may be able to resurrect your system without a re-install, but it'll take longer to test for damage than the re-install option (you're likely to have removed other needed components so you'll need to assess your logs & re-install back what is required...)  Once python3-minimal is installed some tools will become available again...


You will probably be best off with http://www.freenas.org/ it will give you the easiest access and configuration.


After a lot of attempts to fix this various ways, I finally figured out how to use dumpkeys and loadkeys to modify the kernel's "keyboard translation table". Here are the loadkeys strings to set RightAlt+F1 through RightAlt+F12 to their respective offsets from tty12:

altgr   keycode  59 = Console_13
altgr   keycode  60 = Console_14
altgr   keycode  61 = Console_15
altgr   keycode  62 = Console_16
altgr   keycode  63 = Console_17
altgr   keycode  64 = Console_18
altgr   keycode  65 = Console_19
altgr   keycode  66 = Console_20
altgr   keycode  67 = Console_21
altgr   keycode  68 = Console_22
altgr   keycode  87 = Console_23
altgr   keycode  88 = Console_24

Why Ubuntu doesn't include this in the default setup remains a mystery. :)


how to change file permission of a file permanently that is set back to default on boot

Log files are usually created by logrotate. The apache logfiles definition is stored on /etc/logrotate.d/apache2

The file looks like this in one of my servers:

/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
                        /etc/init.d/apache2 reload > /dev/null
                fi
        endscript
}

If you look at the create option, the values after the keyword are the permissions, user and group. Just edit your file and change this values.


There are two bugs about this that you might want to follow:

http://pad.lv/875400 - Unity shell doesn't fully load after crash in compiz settings manager
http://pad.lv/874799 - Broken list of profiles is given by compizconfig-backend-gconf


Is there a way to test if I will be able to login again?

One possibility is to copy your entire home folder into another system (or virtual system), and see if you can log into this system.

This is not ideal and suffers from a few shortcomings.

It's not very convenient, as you would need to install a parallel system, and copy across an entire home folder (although you could exclude personal documents).
Since you don't want to risk logging out, the copied home directory will be copied from its "mounted" state, which might differ from the "logged out" state. However, I imagine that this is equivalent to a situation where your computer crashes and your home folder is preserved in its "mounted" state. I imagine that if it can mount after this pseudo-crash, then it should mount under normal circumstances.


Open Software & Updates from Dash

On the new window open the Updates tab

Now you will see the Automatically check for Updates option between others.
Select your values, enter your password and done!


Apt-get update error: http://extras.ubuntu.com Public key unavailable

gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
gpg --export --armor 3E5C1192 | sudo apt-key add -
sudo apt-get update

This could be a solution. From

http://www.ubuntugeek.com/fix-for-gpg-error-httpextras-ubuntu-com-maverick-release.html

You can also get all launchpad keys automatically using the below method

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeys
sudo launchpad-getkeys

From

Ubuntu Extras keyring error


VirtualBox: How do I ping a Windows guest from the Ubuntu?

Assuming you can use the Windows 7 guest system, check its IP address. One way to do that in Windows is to open a Command Prompt (type cmd.exe in the textbox in the Start menu) and run ipconfig.

You may be told about IP addresses on multiple interfaces.

Now try pinging them from the Ubuntu system by opening a Terminal window on the Ubuntu system (Ctrl+Alt+T) and using the ping command. For example:

ping -c 5 192.168.1.120

Replace 192.168.1.120 with the IP address obtained from the Windows system with ipconfig. The -c 5 part tells ping to send 5 pings, then stop. (You can change that to whatever you want, or leave off the -c flag altogether and it will continue pinging until you stop it with Ctrl+C.)

You can repeat that with the other IP addresses, if you got more than one IP address from ipconfig in Windows. But don't ping 127.0.0.1--that IP address always refers to the local computer. (So if you ping 127.0.0.1 from your Ubuntu host machine, you're pinging your Ubuntu host machine, not the Windows guest machine.)

Please note that by default, all recent (in fact, all non-EoL) versions of Windows have a firewall enabled that blocks pings. You can turn this firewall off or customize it so it does, though. Details about how to do this would probably be considered off-topic for AskUbuntu (but on-topic for a Windows forum or a general computing support site).

This will work without Internet access, but this will not work without a network connecting the host machine to the guest machine. If you have a router that provides IP addresses via DHCP and also Internet access, and you turn that router off, then (unless the host and guest still remember their old IP's), this will not work.

But you can always set up a "host-only" network between the Windows virtual machine and the Ubuntu host machine in VirtualBox. This will permit pinging and other network activity between the host and guest machines even when there is no other network connection. To do this, click Devices > Network Adapters in the menu bar at the top of the VirtualBox virtual machine window, then select Host-only Adapter in the Attached to drop-down menu.

While in the above screenshot, I am changing the setting for the single network adapter (thus disabling access to whatever other network there might be), the network settings window shown above also lets you enable another network adapter (you can have up to four easily) and make it "Host-only." Just click Adapter 2.


pass arguments which has spaces to new protocol

You need to put that part in between "'s.  So that would be

"app://nautilus /home/user/dir/my dir/"

That is a common method when dealing with spaces and parameters.

Alternative: html uses url encoding. A space would then become a %20:

app://nautilus%20/home/user/dir/my%20dir/


Short Answer: Yes

These are default settings.


The correct command to install Wine-stable (1.8.5) is sudo apt install wine-stable. Just wine won't do. I hope it will help you.


Here's the fix (it worked)
with this terminal-command :
CODE: SELECT ALL
sudo sed -e 's/"key-release-event" handler="on_catfish_window_key_press_event"/"key-release-event" handler="on_catfish_window_key_release_event"/' -i /usr/share/catfish/ui/CatfishWindow.ui
....... this bug was fixed in the package catfish - 1.4.7-1 but if your system hasn't updated to that version yet this will fix.


First, try installing the Forge "Installer" .jar instead of the "Universal" .jar. You can download the Installer from Forge, make sure you're selecting the "Installer" option, not "Universal":

https://files.minecraftforge.net/

If that still doesn't help and you see the same error, you could try manually downloading the libraries required here:

https://www.extravm.com/billing/kb_downloads/fml_libs15.zip

Extract them to /libraries on your Minecraft server, then run the installation again:

java -jar forge*installer.jar


Is it preferable to boot from an SD card or from a USB flash drive?

I would like to answer about transfer rate.

Transfer rate for:

SD Card

USB 3.0

There are currently three speed modes defined by the latest USB 3.0 specification. They are SuperSpeed, Hi-Speed and Full-Speed.

The new SuperSpeed mode has a transfer rate of 4.8Gbps (600 MB/sec). While the specification retains Hi-Speed and Full-Speed USB mode, commonly known as USB 2.0 and 1.1 respectively, the slower modes still operate at 480Mbps (60 MB/sec) and 12Mbps (1.5 MB/sec) respectively and are kept to maintain backward compatibility. Check out this page for a comparison between USB 3.0 and other competing interfaces such as eSATA, FireWire 800 and Thunderbolt.

I suggest you to use flash drive to boot.


How can I remove the ugly applet icon background? [Lubuntu]

I can't reproduce your exact set-up, but I can reproduce the background appearing behind certain icons.

It appears that the issue lies with the choice of GTK theme. While I don't have ThinIce installed, I have others. I used Lubuntu's Customize Look and Feel application to change GTK themes.

In the animation below, you can see

a white background with "Materia-light"
a dark background with "Materia" and
no background with "Lubuntu-default"

In addition to Lubuntu-dark, other suitable themes include Greybird and Numix which you can install using sudo apt install shimmer-themes.

Notes:

I prefer to use themes in the repositories because they're more likely to be suitable for the GTK version of the OS. If you want to use themes from elsewhere, ensure they're recent and support your GTK version (which you can check using apt policy libgtk-3.0.)
ThinIce and some other themes in /usr/share/themes contain only a gtk-2.0 folder while some other themes such as Emacs and Default contain a gtk-3.0 folder as well but aren't suitable for general use.


No sound after installing nVidia drivers in Xubuntu 16.04 LTS

Looks like it is a known bug in the recent driver versions. See: https://devtalk.nvidia.com/default/topic/1019761/linux/no-sound-using-displayport-audio-with-375-82-384-59-and-384-69/

Looks like we have to either wait for an update or downgrade to an older version.


How to rename file names - replacing underscores with spaces - in a shell command line script

Using rename:

rename -n 's/_/ /g' *

If everything is ok, remove the -n switch:

rename 's/_/ /g' *

~/tmp$ tree
.
├── file
├── file_1
├── file_2
├── file_3
└── file_with_underscores

0 directories, 5 files
~/tmp$ rename 's/_/ /g' *
~/tmp$ tree
.
├── file
├── file 1
├── file 2
├── file 3
└── file with underscores

0 directories, 5 files


Problems installing Libre Office 4.1 - tar.gz

You are trying to install an rpm package. R(edhat) P(ackage) M(anagement) is designed for Red Hat and its derivatives. It is an entirely different scheme from Ubuntu, based on Debian's .deb method. I suggest you go back and select the Linux - deb (x86_64), (assuming you have a 64-bit system) version 4.1.4 version and try again.

You also need to uninstall the current libreoffice install in your system.

Another option that doesn't require uninstall libreoffice is, on your own risk, adding the LibreOffice PPA


login.launchpad.net tells me "Bad bot, go away! Request aborted."

I contacted LastPass support, and they provided the following suggestion:

Please remove the site in question from your vault (have your username and password handy)
And re-save using Save All Entered Data functions: https://helpdesk.lastpass.com/adding-a-site/#h1
try clearing cache by going to Lastpass icon> Tools> Advanced> Refresh sites and then clear local cache, log out then log back in. Test the issue again.

This seems to have resolved my issue, and I am once again able to log in to launchpad etc.


How do I remove ugly google chrome icon in the Gnome3 applications tab?

My guess is that the second icon comes from the google-chrome.desktop file in .local/share/applications.

I would suggest you remove the file and retry again.


Merge files based on first column and add zeros where the column name doesn't match

It would really help if the question had shown the actual command line being used, not to mention the incorrect output.

But I suspect that this is what you want:

$ join   -o auto   -e '0'   -a 1   -a 2   -1 1   -2 1   f1   f2
1 a d
2 b e
3 c 0
4 0 f
5 0 h


Running VirtualBox in a Xen environment fails

You need to purge all xen-hypervisor related packages:

sudo apt-get purge 'xen-hypervisor*'

Now remove the packages that were installed as dependencies but no longer required after the above removal action:

sudo apt-get autoremove

In one go:

sudo apt-get purge 'xen-hypervisor*' && sudo apt-get autoremove


Where is the location of application shortcuts in Gnome?

You are looking for the .desktop files, which are located in /usr/share/applications (or sometimes /usr/local/share/applications).

Some applications may place these files in ~/.local/share/applications instead.


Do I need an EFI partition for each 18.04 ubuntu I have on my HD?

No, you only need one EFI partition. My dual-boot system shares the one partition between Windows and Ubuntu.

You can see it here with all the goofy Windows partitions. (My / partition is on a different physical drive)


Where can I find the Dell XPS package archives, and the right packages to install?

Please check it out: https://github.com/jules-ch/Ubuntu20-Setup-XPS13/blob/master/setup.sh
It works for me


How to manage and restore a modern iPhone or iDevice on ubuntu with iTunes

Okay, I have gotten this to work, and have successfully restored an iPhone 6 on Ubuntu 16.04. Posting my steps here as I’m sure there are plenty of ubuntu users like me who would enjoy knowing there is a (relatively) easy way to get iTunes working without having to borrow a Windows computer from a relative.

1. Install VirtualBox

Install VirtualBox from virtualbox.org; pick the one that’s labeled for Linux hosts, since we are installing a virtual Windows on Linux (Linux is the host). Other virtualization apps may work too but I didn’t test them.

2. Download a Windows Virtual Machine image

Go to developer.microsoft.com and download a Microsoft Edge virtual machine. It’s free. Make sure the platform matches the virtualization software you are using (VirtualBox). The one I used was the Win 10 Stable version, but the others probably work too. Note that these images are very large (~4.7 GB) and can take a while to download.

3. Extract the .ova image

Extract the downloaded .zip to get the MSEdge - Win10TH2.ova file. The file is large, and it takes a while to extract, but on my computer Archive Manager was able to unzip it just fine.

4. Import the .ova image

Double click the .ova file; Ubuntu should automatically open it in VirtualBox. Let VirtualBox import the .ova, all of the default settings are fine except for the Virtual Disk Image file setting, which should be changed from .../VirtualBox VMs/MSEdge - Win10TH2_1/MSEdge - Win10TH2-disk1.vmdk to .../VirtualBox VMs/MSEdge - Win10TH2_1/MSEdge - Win10TH2-disk1.vdi (the file extension is changed from vmdk to vdi. This is important for the next step, increasing the virtual hard disk size.

5. Increase the virtual hard disk size

This is probably one of the more unexpected things you have to do to make iPhone backups and restores work properly. The default virtual hard disk size VirtualBox allots the virtual Windows 10 is simply not big enough to store most iPhone backups, which will cause them to fail. Fix this by navigating to your Windows VM directory (probably:

cd VirtualBox\ VMs/MSEdge\ -\ Win10TH2

and running this command:

VBoxManage modifyhd MSEdge\ -\ Win10TH2-disk1.vdi --resize 128000

The number 128000 represent the size, in MB, that you’re resizing the disk to. 128 GB is probably enough to hold two or three iOS backups.

6. Increase the Windows partition size

Just upping the disk size isn’t enough to make iTunes aware it has more space to use. You have to use the Windows diskmgmt.msc command (in the ‘start menu’ or whatever Microsoft calls it these days) to open up the Disk Management tool. Then right click on the blue “Windows 10 (C:)” partition and select Extend Volume. By default it will expand the partition to fill the entire 128 GB.

7. Install iTunes

This step is pretty simple, just install iTunes on your virtual machine the same way you would install iTunes on any regular Windows computer.

8. Enable USB visibility

Your virtual iTunes won’t be able to see your iPhone because USB is disabled by default. First you need to turn off the virtual machine (if it’s running), and install the USB extension pack from VirtualBox; it’s labeled VirtualBox 5.0.24 Oracle VM VirtualBox Extension Pack.

Note that the information at https://help.ubuntu.com/community/PortableDevices/iPhone/iTunesVirtualBox is very out of date. I followed all of the steps but I’m not sure this is really necessary. If you do, do not perform step 4 (adding the line none /proc/bus/usb usbfs devgid=123,devmode=664 0 0 to etc/fstab), this will cause a black screen of death on your Ubuntu installation. Fortunately, if this does occur to you, you can always use the Emergency mode command line to navigate back to fstab/etc (cd .. ; cd etc) and use nano (nano fstab) to remove the offending line.

Next go to the Settings editor in the VirtualBox Manager, and go to the USB tab. Check the Enable USB Controller box, and pick USB 2.0 (EHCI) from the choices. (If it’s grayed out, remember to turn off the virtual machine.) Then add an empty USB filter (blue circle) to the USB Device Filters list. Do not select a specific filter (green plus sign) like “Apple Inc. iPhone”, because that filter will fail to detect an iPhone in Recovery Mode, whereas the null filter will.

9. Congratulations! You’re done!

You can now use iTunes with your iPhone on your Virtual Machine completely normally. You can even back up, update, and restore the iOS firmware.


When installing Ubunt 12.10 my computer freezes while trying to install the OS

@jacob, you need to upgrade your RAM to at least 768 MB. Please refer to this for the complete system requirements information.


Why Does VLC Media Player Uninstall When ZSNES Is Installed Through Terminal?

There is a ppa which has fixed this problem.

sudo add-apt-repository ppa:smaxein/ppa && sudo apt-get update && sudo apt-get install zsnes


how do delete file called \\.\pipe\FC_{6D57D5C3-9CEA-4497-BE57-9E544137A437}_1

That file is a socket. It is not a real file, and takes up no space on the disk except in the directory.  It's a private alternative to an internet address for services running on your computer.

It looks like from the \\.\pipe\ part it was created by a program designed to also work with Windows.  Running sudo lsof '\\.\pipe\FC_{6D57D5C3-9CEA-4497-BE57-9E544137A437}_1' within that directory will show if anything is using it.

Personally I'd leave the file alone, though it's fine to delete if nothing is using it, and would be curious what was if still in use.  However as for the many reasons why you couldn't delete it:

Firstly tab-completion can be confused by the backslashes in the filename.

Single quote the \\.\pipe\FC_{6D57D5C3-9CEA-4497-BE57-9E544137A437}_1, and try your ls of the file again.  Notice the missing final =.

Try using ll, then ll -p on the directory, and notice the = disappears from the file name. The = is not part of the file name, but is a file type indicator for a socket.  My -p is short for --indicator-style=slash which overrides the alias ll's -F, short for --indicator-style=classify

From info ls for --indicator-style= (the man page is incomplete):

‘file-type’
      Append ‘/’ for directories, ‘@’ for symbolic links, ‘|’ for
      FIFOs, ‘=’ for sockets, and nothing for regular files.  This
      is the same as the ‘--file-type’ option.
‘classify’
      Append ‘*’ for executable regular files, otherwise behave as
      for ‘file-type’.  This is the same as the ‘-F’ or ‘--classify’
      option.


cache/pip disabled immediately after instalation of pip

First, Python 2.7 is pre-installed on every currently supported Ubuntu release already. So you would not have had to install it first. That's why apt-get has told you that python is already in the newest version.

Second, you should usually prefer the Python modules packaged for apt from the repositories over those you get with pip from PyPI, unless you rely on the features or bug fixes of the latest version. The repository versions are often more or less outdated, but proofed to be compatible with whatever other package that is requiring them.

So to install pip for Python 2, run this:

sudo apt-get install python-pip

In case this old pip version is not working for your needs, you can later simply get the latest version (without uninstalling the old one!) using this command:

sudo -H pip install --upgrade pip

Another tip for you:
You should learn about and use virtualenvs, virtual python environments. You can install Python modules in a viertualenv only without affecting other virtualenvs or the system. It's the safest way to prevent version incompatibilities and messing around with packages needed by the system and other programs.


Boot freeze after install fresh of 16.04 and nvidia drivers

I finally figured it out. It seems that after installing Nvidia driver on 16.04 problems occur with SATA DVD rom devices on certain mainboards. After I disconnected my SATA DVD writer and did reinstall with USB DVD reader and installed Nvidia 361 driver everything worked! I changed the SATA port on mainboard after install for built-in SATA DVD writer (swapped it with one of my ZFS SATA disks) and now all is hunky dory!


Open a terminal (Ctrl+Alt+T) and type the following:

sudo apt-get purge firefox

This will completely remove Firefox.

cd ~ && rm -r .mozilla

This will remove a folder that Firefox might leave behind.

sudo apt-get clean && sudo apt-get install firefox

This will redownload and install Firefox.

Once the last step is done, try opening up Firefox and check if it works.

Source: Ubuntu Forums: Firefox - Could not initialize applicaiton security component


why does free command show more memory usage than other tools

That's because in the first line of free the memory is calculated considering (adding) the amount of memory used for caching and buffering.

"System Monitor" shows memory usage without considering the amount of memory cached and buffered.

Check out the line -/+ buffers/cache:       1.1G       783M of free, this is the same to what "System Monitor" is showing because this line shows the memory usage not considering (deducting) cache and buffers.


My MySQL installation is broken. How to completely reconfigure it?

Before reinstalling check /var/log/mysql for logs files which may contain clues as to why mysql is not working. If there are no logs log to file might not be enabled in your configuration: Configure Mysql Error Log

To reinstall any package check installed version with

dpkg -l|grep mysql-server

then for version 5.7 use

sudo apt-get install mysql-server-5.7 --reinstall

If this doesn't allow you to reconfigure the package you can use

sudo dpkg-reconfigure mysql-server-5.7