Syntax error while deleting files with `(` character in the name

Parentheses are treated specially by the shell. Quote them to remove their special meaning so the shell treats them literally.
There are three major forms of quoting, and for this purpose any of them will do:

Since ( and ) are not the ' character, they're treated literally inside single quotes (so long as the single quotes are not themselves quoted).
Since they are not $, `, \, or !, they're treated literally inside double quotes (so long as the double quotes are not themselves quoted).
Like any character, they're treated literally after a \ (so long as the backslash is not itself quoted).

Thus any of the following will work:
rm ./google-chrome-stable_current_amd64\(1\).deb  # backslashes

rm './google-chrome-stable_current_amd64(1).deb'  # single quotes

rm "./google-chrome-stable_current_amd64(1).deb"  # double quotes

Though less commonly done, you can also use single quotes or double quotes to quote less than the full argument. For example, these also work:
rm ./google-chrome-stable_current_amd64'(1)'.deb

rm ./google-chrome-stable_current_amd64"(1)".deb

As a separate matter, note that you don't need the leading ./ in the path here, though it's fine to include it. With rm, you'd only need it if the path started with a - character, which rm would attempt to treat as one or more options rather than a path. (Though you could alternatively pass a separate -- argument before the path to indicate that all separate arguments are paths and not options.)


Seems that you built a 64-bit kernel instead of a xen one. You need to make sure that the following configurations are correct:

CONFIG_HYPERVISOR_GUEST=y (3.10+ only)
CONFIG_PARAVIRT=y
CONFIG_XEN=y
CONFIG_PARAVIRT_GUEST=y
CONFIG_PARAVIRT_SPINLOCKS=y

And Xen pv console device support (Device Drivers|Character devices)

CONFIG_HVC_DRIVER=y
CONFIG_HVC_XEN=y

And Xen disk and network support (Device Drivers|Block devices and Device Drivers|Network device support)

CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_NETDEV_FRONTEND=y

And the rest (Device Drivers|Xen driver support)

CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_GRANT_DEV_ALLOC=m

Then you need to build the kernel with:

make all -j <2*number_of_cores>

To make a deb package, just use make deb-pkg.

Source:

http://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs


Sounds like:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1064962 (In SRU, in quantal-proposed)
and
https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/1075263 (In preparation)


Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?

Since Ubuntu kernel 4.4.0-20 the EFI_SECURE_BOOT_SIG_ENFORCE kernel config has been enabled. That prevents from loading unsigned third party modules if UEFI Secure Boot is enabled.

The easiest way to fix this issue is to disable Secure Boot in UEFI (BIOS) settings.

In most cases you can get into UEFI settings using grub menu. Press ESC button on booting, get into grub menu and select System Setup. Secure Boot option should be in "Security" or "Boot" section of the UEFI.

You can get into UEFI directly, but it depends on your hardware. Read your computer manual to see how to get there. It may be Del, or F2 on boot, or something else.

An alternative way is to disable Secure Boot using mokutil.

Since Ubuntu kernel build 4.4.0-21.37 this can be fixed by running

sudo apt install mokutil
sudo mokutil --disable-validation

It will require to create a password. The password should be at least 8 characters long. After you reboot, UEFI will ask if you want to change security settings. Choose "Yes".

Then you will be asked to enter the previously created password. Some UEFI firmware asks not for the full password, but to enter some characters of it, like 1st, 3rd, etc. Be careful. Some people do not understand this. I did not get  it from the first attempt either ;-)

Update: Now this kernel config is enabled in all supported Ubuntu kernels. Ubuntu 16.04, 15.10 and 14.04 are affected.


NFS Underground 2 screen problem on Linux

I presume you have "emulate virtual desktop" option set with resolution lower than in-game resolution. Try to disable this setting or increase resolution of virtual desktop


Turns out, I had to have my wallpaper on Ubuntu disc :)


Yes. I have nearly the same (Athlon +2000@2Ghz + Asus A7V880 + Ati Radeon 9600 non-Pro + 1 Gb Ram +80 GB HDD). It works very good! I use it with 2 monitors, with unity-2d.


Extracting specific data in a file using regex

If you can't wrap your head around regex, then don't use it. In most cases you can substitute it with regular Python string functions.

Small example for your data:

>>> s = """    Release date: March 13, 2007
...     Vulnerability identifier: APSB07-07
...     CVE number: CVE-2007-1278
...     Platform: Windows only"""
>>> for line in s.split("\n"):
...     if "Release date:" in line:
...         print line.split("Release date: ")[1]
...     if "CVE number:" in line:
...         print line.split("CVE number: ")[1]
...
March 13, 2007
CVE-2007-1278
>>>

This can be improved ofcourse, but it's just to show you that it's quite easy without regex.

Never forget the famous quote:

  Some people, when confronted with a problem, think “I know, I'll use
  regular expressions.”   Now they have two problems.


Problem when installing 14.04 in Toshiba Satellite L845

The fact that somebody's asking $400 to fix a blue-screen problem in Windows suggests the possibility that the computer has a hardware fault. That's far from certain, though (you haven't said how much diagnosis went into this repair estimate). If I had to guess, I'd say you might have a damaged hard disk. You can check this by running a SMART test, as described here.

You can determine your boot mode by looking for a directory called /sys/firmware/efi -- if it's present, you've booted in EFI mode; if it's absent, you've booted in BIOS/CSM/legacy mode. If my bad-disk hypothesis is correct, this detail is irrelevant; but if something else is going on, knowing the boot mode may be important. Changing the boot mode might or might not be possible, depending on how you created your USB drive. If it is possible, it will be done by using the firmware's built-in boot manager (typically accessed via a function key as the computer starts) and selecting the appropriate boot option -- the description of the boot medium usually includes "UEFI" to boot in that mode and omits "UEFI" to boot in BIOS/CSM/legacy mode.


How do I adjust transparency of background windows?

It turns out (he answered himself) that this functionality can be adjusted with CompizConfig Settings Manager.

(To install CompizConfig, enter sudo aptitude install compizconfig-settings-manager from a terminal. It's also, as of this writing, available through the Ubuntu Software Centre.)

To adjust the transparency of non-active windows (note these instructions have only been tested on version 14.04):

Start CompizConfig.
Go to the Effects menu (either click on Effects in the left pane or click All and scroll to the Effects section)
Click TrailFocus. Its description is "Adjust the opacity, saturation and brightness of windows based on when they last had focus."
Here you can choose either

The Behaviour tab, to configure

which window types (e.g. toolbar, utility, dialog, normal) that TrailFocus will affect
the number of windows that TrailFocus will track (beyond which number it will consider a window "completly (sic) unfocused")
which window in the switcher stack to start fading

The Appearance tab, to configure the opacity, brightness and saturation levels of both focused and unfocused windows


Wifi gets connected at startup but internet won't work til I unco-/reco-nnect it manually

This command has a good chance to solve the issue:

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1"

Run it, reboot and test.


Wallpaper disappear every time I change it from the command line

Problem solved by Jos. The file path must be between single quotes, and I put it between double quotes.


Cannot change directory evenif it exists

I imagine you meant to type:

  cd ~/idea

and not

  cd -/idea

Notice the '-' sign. If your directory truly has a leading '-' then refer to this POSIX standard and use:

cd -- -/idea


What dependencies does Kdenlive 16.12 or above need to have in advance?

If you have to ask probably not the best of ideas to compile.

Use the ppa - version 16.12 - https://launchpad.net/~kdenlive/+archive/ubuntu/kdenlive-stable

sudo add-apt-repository ppa:kdenlive/kdenlive-stable
sudo apt-get update && sudo apt-get upgrade

To compile see https://help.ubuntu.com/community/CompilingEasyHowTo

For additional information on ppa see What are PPAs and how do I use them?


xml2-config is different from the same file on the system

It's a known bug, I'm afraid. libxml2-dev is marked as being multi-arch co-installable, but it actually isn't.

Uninstall it: apt-get remove libxml2-dev:i386


Quoting the bash manual:

  Bash uses a hash table to remember the full pathnames of executable files. A full search of the directories in PATH is performed only  if the command is not found in the hash table.

Here, what happened is that you:

removed the original /usr/bin/vim, and
created a new /usr/local/bin/vim.

In this case, bash's path hash table was never updated, so when you call vim after 1 and 2, it finds the old hashed path. To force a path hash update, use hash -r.

AFAICT, bash has a strange and undocumented behavior, in that:

  If you call vim between 1 and 2 (leading to a legitimate "command not found"), then the hashed path is automatically removed, so when you call vim again after 2, it works just fine.

What I don't understand is why bash doesn't automatically remove the path when vim is called after 1 and 2 (as in your case), and the wrong path is found. But that's what's happening.


Display mode keeps changing in Ubuntu 19.04 and other versions

I got the exact same issue on my laptop today, and had to use the same workaround as you in Kubuntu (disable all keyboard shortcuts for switching display mode). I found a way to do it in Ubuntu here: https://unix.stackexchange.com/a/400098
Go in the dconf-editor via the command "dconf-editor" in a terminal, then go at:
/org/gnome/mutter/keybindings/switch-monitor

and disable "use default value" and delete:
'<Super>p', 'XF86Display'


Remove last n characters of filenames for all files in a directory

Using bash parameter expansion:

for i in ?????????????*; do echo mv -i "$i" "${i%????????????}"; done

remove echo for actual action. Check for same output filename for multiple source files.

Also you could use parameter expansion replacement pattern:

for i in ?????????????*; do echo mv -i "$i" "${i/????????????}"; done

Using rename (prename), from that directory:

rename -n 's/.{12}$//' *

This will rename all files and directories, if you want to do for only files:

find . -maxdepth 1 -type f -name '?????????????*' -exec rename -n 's/.{12}$//' {} +

This will do dry-running, remove -n for actual action:

find . -maxdepth 1 -type f -name '?????????????*' -exec rename 's/.{12}$//' {} +

Again this could result in a race condition, make sure you check the output from the dry-running carefully.


Reading specific file fails - how to identify the problem?

I recommend using SMART initially, assuming your hardware supports it. This would confirm bad block problems which you can deal with accordingly. If it isn't the disk you can look into sar, iostat, hdparm, and dtrace?

http://smartmontools.sourceforge.net/badblockhowto.html


Since, when I first accessed Sublime Text, I accessed it as root, it's file permissions would need to be changed. It worked by the following command:

sudo chown -R username /home/username/.config/sublime-text-2/

in my case, it'll be:

sudo chown -R ranveer /home/ranveer/.config/sublime-text-2/

Thanks to the comments by @SylvainPineau


I am unable to install wifi wireless driver bcm4311 on Hp Compaq nc8430 - ubuntu 12.04

The installation of the Broadcom STA driver by 'Additional Drivers' is incorrect for this device 14e4:4311. It adds a number of blacklists of needed drivers. It is not enough to remove the driver. In order to remove the blacklists, it must be purged:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Reboot and you wireless should be working correctly. Please stay away from 'Additional Drivers.'


The overlapping data suggests that you did not have a GPT disk to begin with, but in fact had an MBR disk and were booting in BIOS mode. (One of gdisk's features is that it automatically converts from MBR to GPT when you launch it on an MBR disk.) If I'm right, you can probably restore the MBR as follows:

Launch gdisk, as in your example.
Load the (converted-to) GPT backup data, as in your example.
Type r to enter the recovery & transformation menu.
Type g to convert the GPT data to MBR form (in memory). You'll see a new MBR command prompt.
Type p to view your converted-to-MBR partition table.
Review the output to be sure that all the partitions are present -- none should be listed as omitted in the Status column. You may want to review the FixParts documentation, as FixParts uses this same menu, and the documentation describes the options in more detail.
Once you're satisfied that all your partitions are present and set as they should be, type w to save your changes and exit.

OTOH, if you're positive that the disk was in GPT form and that the computer was booting Windows in EFI mode, then your partition table was simply damaged to begin with. In this case, you may need to delete that final partition and re-create it a little bit smaller to make it fit; gdisk won't let you save a damaged partition table.


Can't pass the variable into other command

You should use command substitution and for doing that you are missing a $.
You should also pipe the content of your variable to cut or read it from stdin.
So use this instead:
$ exampleVariable="[$(cut -d: -f1 <<<$passwdContent )]"

Now:
$ echo "$exampleVariable"
[ravexina]


Can't get Juniper working on Ubuntu 14.04 The pieces work but whole does not

The Juniper connection tools can't run on an encrypted partition. This is what I was experiencing. IMHO, this is completely ludicrous.


Ubuntu 19.10 - cannot run .desktop files

I believe all you have to do is right click on the .desktop file on the Desktop, and click Allow Launching.

which will show the application's icon and make it launchable.


The application you are opening is one that needs root  privileges. You could also link the files to use them:

sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts


All the wifi networks are not showing up in Ubuntu 18.04 (Details in description)

My WiFi shows 73 APs (Access Points) but only two belong to my router (one for 2.4 GHz the other for 5.0 GHz). The rest are my neighbours in close proximity. The stronger the WiFi card in your PC or Laptop, the more APs you will see. For my Ubuntu 16.04 I need to select the option: More Networks to see the entire list.

For your Ubuntu 18.04 follow these instructions: Connect to a wireless network I've summarized the steps below but click on this link to get a more thorough set of instructions.

If you have a wireless-enabled computer, you can connect to a wireless network that is within range to get access to the internet, view shared files on the network, and so on.

Open the system menu from the right side of the top bar.
Select Wi-Fi Not Connected. The Wi-Fi section of the menu will expand.
Click Select Network.
Click the name of the network you want, then click Connect.

If the name of the network is not in the list, try clicking More to see if the network is further down the list. If you still do not see the network, you may be out of range, or the network might be hidden.
If the network is protected by a password (encryption key), enter the password when prompted and click Connect.

If you do not know the key, it may be written on the underside of the wireless router or base station, or in its instruction manual, or you may have to ask the person who administers the wireless network.
The network icon will change appearance as the computer attempts to connect to the network.
If the connection is successful, the icon will change to a dot with several curved bars above it (). More bars indicate a stronger connection to the network. Fewer bars mean the connection is weaker and might not be very reliable.


upgrade from ubuntu 16.04 to 18.04 fails at boot in virtualbox

The same happened to me upgrading from to 18.04 in VirtualBox 5.2.18. In my case I was able to fix it by powering off the VM, opening its settings in VirtualBox Manager, then:

System > Acceleration > Change Paravirtualization Interface from Legacy to Default. (Both hardware virtualization flags were already checked; I didn't need to change those).

Then I could boot into 18.04 ok - phew! I would've never have guessed this without your hint to look at the Paravirtualization Interface, so thanks!


OK, I find how to work this out.

If you've not already done so then install Wine. Now all you have to do is copying the wininet.dll.so file from /usr/lib/wine/ to /opt/google/picasa/3.0/wine/lib/wine/ overwriting the one that's there. Picasa should now work!

http://forums.fedoraforum.org/showthread.php?t=223743&highlight=picasa


sudo permission doesn't time out durring apt-get upgrade

You aren't prompted for a password because sudo has done it's job and started apt-get as root. While it's in the prompt, the apt-get process is still running, and so since it's still running as root, there's no need to enter your password again.

In other words, as long as a sudo'ed process is running, you won't be asked to enter your password again for that process; sudo doesn't interrupt the process every 15 minutes (the default timeout) and ask for your password.

Now, if you were to open another terminal and try to run another process under sudo, then you will be prompted for your password.


How do I restore Unity configuration (and other problems) after hard reboot?

As you said in chat that this does not happen in the guest account, use the following steps to circumvent the issue: (this is a workaround, not a solution)

create a new user (E.g. user2 for original user user)
with the same groups as the other user.  (go to a terminal and execute groups to verify logged on to each user and that they have the same output)

Now:

open the file manager
browse to the /home/user directory
copy (not move!) all the files and directories from Downloads to /home/user2/Downloads
check you did a good job.
Now delete /home/user/Downloads
Go back to step 3 and repeat for Documents, Videos, ...
In a terminal type the following command: deluser user --remove-home

Done!

Why? As you have seriously messed up some problems with the current's user profile, some setting somewhere in one of the .config files or directory permissions is causing a problem.  As we can't solve this problem in a reasonable amount of time, it's best to just leave that profile behind and starting afresh!


How to run dockbarx under unity and GNOME-Shell?

To run DockBarX as a stand-alone dock, press ALT + F2 and type:

dockx

To add it to startup, add the same command to your startup applications list.


Wi-Fi on Ubuntu Server 16.04 (connection problems)

Two different devices with different hardware addresses can't use the same address on the same network. In this case, your wireless access point (router) is 192.168.0.1, you suspect. Your wireless device, your RT5390R 802.11bgn PCIe Wireless Network Adapter, is not allowed to use the same address.

First, verify that the gateway (router) address is 192.168.0.1. Can you verify with other devices; that is computers, phones, iPads, etc., on the same network?

Next, the address for static IP addresses must be outside the pool used in the router for DHCP. Please see this example: https://www.voipmechanic.com/dlink_pics/dlink-airwireless1.jpg

In this example, the DHCP range is set to x.100 to x.199. We can therefore safely use a static IP address in the range of x.2 to x.99. For example, I might use a static address of 192.168.0.50.

Either log on to the administrative pages of the router and verify the range, or, if this is impossible, note the addresses of other devices connected to it by DHCP and guess. For example, suppose that the various laptops, phones, iPads, etc. are all given addresses from 192.168.0.5 to 192.168.0.25. It is reasonable to guess, therefore, that an address of 192.168.0.150 is available.

Next, your interfaces file lacks required DNS nameserver addresses. I suggest that you amend the interfaces file to something like:

#auto enp1s0
iface enp1s0 inet dhcp

auto wlp2s0
iface wlp2s0 inet static
address 192.168.0.150
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
wpa-ssid ZENTA
wpa-psk blahblah

Note that I have commented out auto enp1s0 so that it doesn't start automatically. The goal here is wireless. If you need to start it after boot, you can always:

sudo ifup enp1s0

Finally, stopping and restarting networking is deprecated. Instead, please do:

sudo ifdown wlp2s0 && sudo ifup -v wlp2s0

Did you get the requested address?

ip addr show

Are you connected?

ping -c3 www.ubuntu.com


LAMP refers to Linux+Apache+MySQL+PHP so installing these will give you an LAMP server, to install that easily you can use tasksel which you can install by opening a terminal (ctrl+alt+t) and do:

sudo apt-get install tasksel

After that is done call tasksel with sudo rights

sudo tasksel

Which will show you a window similar to the one in following screen-shot:

Move your selector to the LAMP entry and press space to mark it, then press tab to highlight the <ok> field and press return.
This starts the installation process.

As pointed out by Rinzwind tasksel is not necessarily needed to do the lamp-server installation you can as well do it by simply entering:

sudo apt-get install lamp-server^

The ^ is essential here.


Dekko Email Client - IMAP - How to set up outgoing (SMTP) mail settings

I experienced the same as you did. Unfortunately you need to add a further SMTP account to your already existing IMAP account. Check out your e-mail server's settings for further details like port number and server name.

Now, I'm able to receive and send e-mails on my ubuntu phone ...

:)


DisplayPort Chaining crashes display manager

Turns out that my issue was not to do with DP1.2 chaining, but with the graphics support for my laptop.

After considerable amounts of searching online, I found this post which indicated that updating my kernel version should improve support for my Dell laptop.

I have now upgraded to 4.6 and all my displays are working properly.

Hope this helps people in future.


Is there a music player that doesn't play video or show photos?

Audacious

Install via the terminal with:

sudo apt-get install audacious

or through the Software Center:


How to get Unity working on dual gpu laptop?

You need to install a program called Ironhide from the ironhide PPA

sudo apt-add-repository ppa:mj-casalogic/ironhide && sudo apt-get update && sudo apt-get install ironhide ironhide-ui

This will install software that will allow switching between the Nvidia GPU and the Intel GPU, it will also shut down the Nvidia when it is not needed...

It doesn't work perfectly and most of the time the Intel GPU is being used, but it does allow for unity 3d to work.

I haven't had any luck with the GUI portion of Ironhide though it just crashes.

I've also had to type this sudo modprobe nvidia-current to activate the nvidia card..

You also have to run programs that you want to run on the nvidia card from the command prompt..

ie: optirun google-chrome, will run google-chrome with the nvidia-gpu

PS: You can't disable the Intel Adapter because the technology that is used for the dual GPU setup is based on a switch GMA that allows for other GPU's to render. There is no direct connection to the Nvidia GPU.

Although some bios's will allow you to disable the intel chip in the settings, then Just the nvidia can be used.


I'm guessing the /dev/sda1 is where your windows installation is - you might be able to shrink that partition some, but that operation should be done while windows is running, using the windows disk manager.  Make a backup first!

Then, using a live CD or live USB, you will need to add gparted to the usb while in the 'Try Ubuntu mode'

sudo apt-get install gparted

Then, you can run gparted against the disk, and move or resize the remaining partitions.


You do not normally install grub to a partition's boot sector(PBR) and never to a NTFS PBR.

GRUB is not letting me switch to Windows 8. Dual boot process. Ubuntu 15.04

While grub likes to default to install to drive seen as sda, with multiple drives and multiple installs, keep each system's boot loader in the MBR of the drive installed into. You can use Boot-Repair's advanced mode and choose an install and then choose the drive to install boot loader. Then in BIOS choose to boot system you use the most. But if issues then you can choose from BIOS any other system.


How is Ubuntu able to send alerts to external e-mail addresses?

This happens because Ubuntu desktop and server has by default (at least on 16.04 and onward) postfix.service enabled and running. You can confirm this by issuing the following command in terminal:

systemctl --type service --state running | grep postfix

The sending of mail works because postfix does a simple DNS lookup for the MX record for the domain the mail is destined for. The receiving server simply takes the mail it got sent and maybe does a few checks on it and puts it on the receivers inbox. So no SMTP configuration is needed to send an email.


I solved the issue by using typedef http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#The-typedef-Statement

I added this typedef unsigned u8; to the beginning of the files I had errors in

You can find the current known integer data types here http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Integer-Types


How to create a new blank file in Nautilus 3.6 and above?

Well, I filled a bug report on bugzilla.gnome.org and I feel stupid now... This feature still exists.

The solution is to create a blank file named for instance new inside the ~/Templates/ folder of your home directory.

  → On non-English installations, the templates directory might have another name. One can find the actual directory with xdg-user-dir TEMPLATES.

If you're still facing the problem, Check the file in ~/.config/user-dirs.dirs if XDG_TEMPLATES_DIR variable is set correctly. If it is set to $HOME/ instead of $HOME/Templates/, correct and save that file.


fwupd to update OCZ RevoDrive firmware gets a 'Permission denied' error

(Comment by OP answered own question)

The problem was that I was trying to run it from the fwupd that was located on my HDD, instead of... well I'm not exactly sure where I ran it from, but what's important is that it worked! If this question can be deleted I have no qualms about it, sorry! sudo updatedb && locate fwupd is what helped me to solve this,

I just didn't think it wouldn't allow me to run it from the other locations that I had it in. – Late Nov 30 '11 at 22:45


What I did under ubuntu 14.10

sudo apt-get install build-essential

sudo apt-get install git-core qt4-dev-tools libqt4-opengl-dev libqtwebkit-dev zlib1g-dev

sudo apt-get install libqt5serialport5 libqt5serialport5-dev

sudo apt-get install libqt5webkit5-dev

git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyhead

cd sleepyhead

export QT_SELECT=qt5

qmake

make -j3

Hope that will help


how to install other operation systems without live cd

Use GParted to create NTFS partitions, which are used by default on Windows installations. You will still need to run the Windows installer from USB, DVD or CD though.

You can try searching for alternative software that allows you to do just the same thing on Ubuntu.

Other solution:
Try installing Windows inside VirtualBox, a way to make a "virtual" computer, a computer inside a computer. You can install it with

sudo apt-get install virtualbox

The manual of VirtualBox might be helpful.

Good luck.


Gedit plugins not working after upgrading from version 12.04 to 14.04

I found the problem: in the file .bash_rc I had the LD_LIBRARY_PATH set to some Matlab libraries. Commenting this line solve the problem (not sure why though).


"mount(2) system call failed", would any of the methods lead to file loss?

This fixed the issue for me

sudo fsck.ext4 -y /dev/sdaX

Here "X" should be replaced with the number of the partition you are trying to fix
and there was no file loss for me
(note -y is there because I am too lazy to type yes everytime it asked)


How can I get my Raspberry pi to run Dual monitor running ubuntu

I have the same configuration as you. (Ubuntu on a raspberry pi with 7" display with a second monitor connected via HDMI cable). The following worked for me.
sudo nano /boot/fireware/usercfg.txt

After the file is open
# Definitely required
dtoverlay=vc4-fkms-v3d

# If one of the monitors have dark border
disable_overscan=1

# Not sure what it does. Might not be required.
max_framebuffers=2

Save and exit. Install the following
sudo apt install xfce4-settings

Reboot
sudo reboot

After login to check the displays
xfce4-display-settings &

For me, this was displaying two monitors side by side (one huge and another small). To get the name of the displays:
xrandr --current

If it is displaying two different monitors
xrandr --output <projector> --same-as <desktop>

where in my case  was HDMI-1 and  was DSI-1. To switch off the  (DSI-1) monitor
xrandr --output HDMI-1 && xrandr --output DSI-1 --off

This will switch off the DSI-1 monitor.
My references: Ref1, Ref2, Ref3


go to keyboard shortcut section and find the "Sound and Media"

set the shortcuts to other key combos as you dont have media keys on your keyboard.

i have configured like below

i have tested them without lockscreen,

it worked on lockscreen also


How to make a complete removal of Python 3.9 in Ubuntu 16.04?

in case you still need it.
first of all, it's never advisable to uninstall python. check for instance this link.
having said this, Ubuntu 16.04 does not depend (wasn't build) on Python 3.9 (check this out, for instance). thus, and in principle you shouldn't be having problems fully uninstalling it... as it was my case.
i had no troubles following these steps; which for you/me would be something like:

sudo apt-get clean
sudo apt-get autoremove --purge
sudo apt-get remove python3.9
sudo apt-get autoremove

good luck!


How do I move clock to the right end of GNOME 3 Panel from the middle?

You may use a GNOME shell extension called Frippery Move Clock to achieve this goal.

Also another extension called Unite

  [...] makes a few layout tweaks to the top panel and removes window decorations to make it look like Ubuntu Unity Shell.

Moving the clock to the right is among the modifications it does.


Cannot change GTK and icon after changing LightDM greeter

I had to delete ~/.config/dconf/user while logged out (in other words, from a virtual terminal) to get my settings back to working order. It's not a perfect fix, and it meant that some other things got reset of course, but it was the only way to get dconf to reset without restoring on log out.

See here.


Opera widget installer starts every time

This looks like a duplicate of Problems with Opera's launcher

However, that questions (and the launchpad link) mention Ubuntu 11.04 beta, and Opera 11.01, while I'm using a clean install of both Ubuntu 11.04 final and Opera 11.10 final.


Touch pad only works when mouse is connected Kubuntu

The issue isn't software related!
Taking apart my laptop I discovered that one of the pins on the touch pad connector was bent. By fixing it and reconnecting the pad works fine - for now-.
Thanks for all the help.


Full Rackspace cloud server backup to local

Have you tried using the --verbose option? Hopefully this will make rsync tell you something about what's going on.

Side note: If it were me, I wouldn't be backing up the whole of /. Even with the exclusions you've listed, you'll still be backing up a lot of (pretty large) files that don't need backing up, like /usr and /bin. It's probably easier to sync just the directories you do need rather than excluding than the ones you don't.


11.10, get purple screen, hybrid graphics related?

I don't think this is a issue of hybrid graphics,
I've run 11.10 on my Lenovo W520 for a while, and I've experienced the same, no matter what graphics setting.

I switched to gentoo 2 weeks ago, and the issue is gone.
I think it's a problem of the EFI boot subsystem (which I didn't include in my gentoo installation).

Greetins Christian


Apart from trying to run Adobe's Flash Professional under the WINE environment and hoping it works OK, here are a few alternatives to use:

Open Laszlo and also Ktoon which is available in the Software Center, might be able to help to create our animation...


The logical place to put these files is in a /var/log/ location somewhere.

That would be the perfect place.

The other option would be to store logs inside your project directory.


How can I move my /home directory to another partition if it's already part of the / partition?

I think it's best to follow the Ubuntu wiki guide. I used it a while ago and it worked just fine.


Kdenlive effect properties section disappeared

This subwindow is called “Properties” and can be enabled in the menu bar via View → Properties:


Sharing mouse and keyboard input on virtual machines

Maybe I don't understand the question, or maybe you haven't tried it yet.  But I have it working.

I have two computers, Lubuntu and Windows and each one has two virtual machines, one Win7 and one Lubuntu.

I installed Virtualbox in both computers and added the guest additions.  With both VMs running, my mouse moves from one to the other as though I am operating in the base system.  (I am currently on my Win10 machine and just discovered I did have both VMs running)

I did this once in the Lubuntu computer, but it froze up because the two together use all my system resources, but it worked until it crashed.

In the past, I remember that after installing Vbox, I would have to load the guest additions before I could sue the mouse and keyboard across the real OS and the virtual OS.  But now, it seems to default to sharing them at the install.


How can I search manpages in 13.10’s dash?

After having entered the search term in the text field of the Dash we can filter the results to include manpages as a search source:

This will then display manpages of all installed applications. Selecting the manpage will display its content with Yelp.


How can i upgrade ubuntu 10.10 to 12.04?

I think it would be best to upgrade going through the ranks, but i not sure i not done it any other way. I near sure if you go to the update manager you will find options there to upgrade to 12.04 ubuntu without having to go next 11.04 or whatever comes next.


I would suggest you should follow the following steps:

Step 01:

Download EaseUS Partition(In windows) and remove the Ubuntu which is already installed in your hard disk using the software.
Make sure to create empty space for Ubuntu in your hard disk using the Software.

Step 02:

Make a Bootable USB drive(UBUNTU).
Restart your computer, and press F12 for boot option and select your USB drive as boot option(make sure you are booting in legacy mode.)

Step 03:

Just click on try Ubuntu, and on the main screen you will get an option to install Ubuntu click on that and your setup should start.
When prompted for installation type, click on the last option(something else), and continue.

Step 04:

Now we need to make 4 partitions.

Click on unallocated space, click on new. Enter size as 48GB (you have to enter in mb), choose file system type as ext 4, mount point /, partition type primary This means Ubuntu root partition.This is a screenshot.
Click on unallocated space, click on new. Enter size as 2GB(probably the size of your RAM), choose primary partition, file system type SWAP.This is a screenshot.
Click on unallocated space, click on new. Enter size 50 GB(this is main your partition), choose primary partition, file type ntfs. Continue as shown in the above images.
Click on rest unallocated space, click on it. Choose ntfs as file system, partition type logical and create it. This will automatically create extended partition.Continue as shown in the above images.

Step 05:

Now continue with your normal installation, and AHA! you are done.
CONGRATULATIONS!


How to get Ubuntu to display unicode supplementary characters?

The comment about the missing glyphs is correct.

I installed additional font packages, namely AR PL fonts Ukai & Uming:

sudo apt-get install fonts-arphic-uming fonts-arphic-ukai

and now I can get most (though not all) of the characters displayed correctly.

There maybe better font packages out there but that's the best answer I have come to the conclusion of at this time.


How to use nova list on Ubuntu Cloud OpenStack

I found the files

.cloud-install/openstack-ubuntu-rc
.cloud-install/openstack-admin-rc

Exactly what I was looking for.


Unable to auto mount usb and "mount: special device /dev/sdb1 does not exist error"

your USB have only raw disk space. there is no partition.
see your output TYPE of sdb:

ravan@ravan:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0 120.1G  0 part
├─sda2   8:2    0     1K  0 part
├─sda3   8:3    0 255.4G  0 part
├─sda5   8:5    0  16.3G  0 part [SWAP]
├─sda6   8:6    0  39.6G  0 part /
├─sda7   8:7    0  99.4G  0 part /home
└─sda8   8:8    0 400.7G  0 part
sdb      8:16   1   3.8G  0 disk
sr0     11:0    1  1024M  0 rom

First you have to create partition and assign complete space to that partition. then you will be able to do that.

For that you have to go:

sudo fdisk /dev/sdb

press n to create partition and follow other option and assign complete space to this single partition.you can take help from  here to create partition.

NOTE: disk never mount


The problem is the spaces between Michell and Payano, between Data and Analytics, and between Analytics and Tools.

Use this:

cd "C:\Users\Michell Payano\Desktop\Data Analytics Tools"

or this:

cd C:\\Users\\Michell\ Payano\\Desktop\\Data\ Analytics\ Tools

In the first form, the whole path is put in double quotes to avoid the string from being broken up. In the second form, spaces are "escaped" by preceding them with a backslash, meaning that they are part of the path. The backslashes already in the path need to be escaped as well to be recognized as path separators.


For those who encounter the same issue (whether using Lotro or not), this is how I was able to get it running.
First, you will need to install primus.
This is in the Bumblebee PPA, so if you are using that then skip the following command.
To add the PPA, open the terminal and enter the following command:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update

Once you have added the PPA, install Primus using the following command:
sudo apt-get install primus

If you have a 64bit system (likely), they you also want to use this command:
sudo apt-get install primus-libs-ia32:i386

Just like with optirun (Bumblebee), Primus uses primusrun.
To be technical, here is a quote to explain the difference between the two:

Bumblebee uses VirtualGL to copy the image generated by the second (faster) GPU to your display. VirtualGL was intended for use over a network though, so it takes a great many steps to enable this (compression, sending the image over a network link, decompression, etc).
Primus doesn't perform all these "extra" steps, instead taking a more direct route (copying the rendered image in memory to the other GPU, then displaying there). In theory this should get you better performance as well as better compatibility. Running applications will "see" the OpenGL implementation of your real hardware, nothing virtual is presented to them.

The next step I took was to use the Windows version of PyLotro, since the Riders of Rohan update caused issues with the Linux native PyLotro app.
I set up windowed mode, and started PyLotro with the command 'primusrun wine pylotro.exe'.
This started Pylotro as it had done in the past, but once I clicked to log in, instead of getting the annoying 'FINISHED' message, it started the game and the problem was gone.
So, if you have problems running Wine apps through optirun, I recommend trying primusrun, as it seems to work a little better.
(The solution found was thanks to webupd8, see the page here: WebUpd8 Primus Page)


Why does gnome-terminal swallow some of my Alt tmux shortcuts?

The problem turned out to be Unity. The bare Alt key is the default Key to show the HUD, and somehow that binding was occasionally mucking with Alt chords in my terminal. Here's how to unset it:

Install ccsm if you don't have it

sudo apt-get install compizconfig-settings-manager

Open the program

ccsm

In the window that comes up, find the Unity plugin under the Desktop section. The very first item in there is Key to show the HUD, which defaults to <Alt>. Click on the <Alt> button and uncheck the Enabled box. Done!


That strikes me as inordinately dangerous. Suppose I type "rm -rf /" then turn my head for a couple of seconds before I type the rest of the path.

(confession: Also, I don't know how to implement it)

If you just want to introduce some delay, I could suggest:

later() { sleep 3; "$@"; }

So you type later ls -l and hit Enter: 3 seconds later the directory listing appears.

Or if you want  to be able to specify the delay:

after() { local secs=$1; shift; sleep "$secs"; "$@"; }
after 3 ls -l


You probably want to use chm2pdf from the universe repository.
You can install it either by clicking the red button or by running the terminal command below:
sudo apt-get install chm2pdf

You then run the command like this:
chm2pdf OPTIONS FILENAME.CHM FILENAME.PDF

Note that as OPTIONS, you must at least specify either

--book (structured output: headings, chapters, ...),
--webpage (unstructured, but page breaks between different documents/URLs in the CHM file), or
--continuous (unstructured output)

For more information, see man chm2pdf or its online manpage .


Upgraded from 3gb ram to 4gb ram, Ubuntu 15 amd64 will not load and keeps rebooting, Ubuntu amd64 live will do the same

Take out all of the original RAM, boot into memtest, its possible the new chip is bad. As to why remove the original RAM, it is simply a time saver as you know that it, the originsl RAM is good.


Why the maximum resolution available is 640x480 if my laptop has a 1280x800p?


xbindkey delete suggestion makes the shift key constantly pressed

I found a solution to my problem. I use the commands:

sudo apt-get install xvkbd           #to install the package
xvkbd -xsendevent -text '\[Delete]'  #to activate the correct key

instead, it works great. I still don't know why the other method doesn't work for me.


I would use bash for loop for this purpose - let's assume you are in the parent directory, that contains the directories videos/ and compressed/:

for f in videos/*mp4; do ffmpeg -i "$f" "compressed/${f##*/}"; done

Or if you want to convert any type of video file to mkv, you can use:

for f in videos/*; do ffmpeg -i "$f" "compressed/$(basename "${f%.*}").mkv"; done

In the above examples:

${var##*/} will outputs all characters after the last slash /, so only the filename without the path will remains;
${f%.*} will outputs all characters before the last dot, so the path and the filename will be kept but the file extension will be removed. Then the command substitution $(basename "/path/name") will outputs only the name without the path.

References:

How do I remove the file suffix and path portion from a path string in Bash?

How do you convert an entire directory with ffmpeg?


Variable is taking value as a file instead of text (String)

Shell parameter substitutions like ${string/pattern/replacement} don't modify the original value of string. You need to assign the result of each substitution back to the variable, e.g.

vString="${vString/@@d/$vTipo}"
vString="${vString/13/$vMes}"
vString="${vString/1986/$vAno}"

and so on.


predefined cell ID assignment for an ad-hoc wlan

the problem was that previous versions of wpa_supplicant does not support the bssid, installing wpa_Supplicant 2.0 solved the problem!


Computer hangs when trying to start Software Center

there is a all time default solution which I am following if I saw any thing like that .

open your terminal
sudo rm -rf /var/lib/apt/lists/*

paste the above line .
try again .


Make an encrypted partition visible to any operational system

VeraCrypt is the replacement for the now discontinued former 'industry standard' multi-platform encryption tool, TrueCrypt.

For Ubuntu/Linux: Download and extract the VeraCrypt Linux Setup 1.18 (current version). Run the file with "setup-gui" in its name and x86 or x64 according to your system's architecture.

For Windows: Download and run the Windows installer.

It's very easy to use but you should also read the user guide.


restore console generic display driver on Ubuntu server (no GUI)

I finally found the solution from this useful and clear thread : https://ubuntuforums.org/showthread.php?t=2250571

It was quite simple: just blacklist the gma500_gfx failing driver.

This can be done at boot during GRUB menu, press 'e' for edit, edit the linux line, add modprobe.blacklist=gma500_gfx at end of line just after ro

If you want to permanently blacklist this driver edit /etc/modprobe.d/blacklist.conf and add the following line:

  blacklist gma500_gfx


Ubuntu does not recognize Ctrl key after recent upgrade

I used xmodmap to map the menu key to Control key as a last resort. The script used is as follows:

clear control
keycode 135 = Control_R
add control = Control_R

The above script was saved in  a ~/.Xmodmap file and called using the command:

xmodmap ~/.Xmodmap

to enable the new key binding. This can also be set up at startup.


It seems that what you are having trouble with is a communication between Virtualbox, and your physical machine. When you load any OS/VM in Virtualbox you are asked to allocate a certain set space that it can use. What happens is that a "fake disk" is created, and that is what is used for the VM. In the current latest version of Ubuntu Virtualbox, I do not believe you can communicate physical data between partitions of Virtualbox -> Your hard-drive (or vice-versa)


Can I download MULTIPLE youtube search results using youtube-dl?

youtube-dl accepts multiple URL's as input, so yes you can download multiple videos with one command: youtube-dl url1 url2 url3.

However, if you have a lot of urls, consider putting them in a file, each URL on it's own line, and tell youtube-dl to load the URL's from that file: youtube-dl -a my_url_file.txt, or the more verbose version: youtube-dl --batch-file my_url_file.txt.


Is there support for screen rotation and keyboard/trackpad lock on a yoga 11s in ubuntu 14.04?

There are two projects on the subject of screen rotation:

1) rubo77's screen-rotate-sh on git, wich is a manual executed script that could be mapped to a key/ combination. It also "should" disable the touchpad with the xinput enable/deisable "$TouchpadDevice" code in the script.
In my case it didn't so I changed the code slightly to execute synclient touchpadoff=1 instead. One or the other should work.

2) pfp-schneider has created a auto-rotate script collection that is enabling the position sensors of your YOGA and using their output to rotate the screen automatically.
You can find the links to his git-hub on this post in ubuntuforums.org.
There is a usable step-by-step guide in the same thread in post #241.
As of today (16APR15) there is small mistake in the raw code of pfp-schneiders program that has to be fixed manually. A "short" explanation by (the smart, cunning, and good-looking) myself how to do it can be found in post #289.

Greetings

Felix


After one day of struggling, I found it has nothing to do with driver.

If anyone has this problem, the solution is

echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf

I don't know what is this problem, but I believe it should be permanently fixed.


Sitting at Starbucks now, it looks like I've found a workaround for this. In my case the error shows the hostname in quotes:

  Error resolving “secure.datavalet.io”: Name or service not known

Work Around

In a Terminal, find out the IP address of secure.datavalet.io.

  ip route

(Example output: default via 172.31.98.1)
run sudo nano /etc/hosts to add the IP address and hostname (from error) as a new line in your systems hosts file.

172.31.98.1 secure.datavalet.io

Usually optional, but in some cases where you've previously connected, you may need to also run sudo nano /etc/resolv.conf and insert a line for the first nameserver with the IP address:

nameserver 172.31.98.1

Try to connect to WI-FI again (e.g., through Firefox, which has the functionality of requesting the Network login page).

Explanation

It seems the problem is the hotspot server name (aka WiFi router) cannot be found during normal DNS lookup. This is due to a common out-of-spec router configuration, and the fact systemd operates according to RFC specification.

There is a bug report: 1766969 that seems to identify this problem with WiFi hotspots common to hotel WiFi, coffee shops, and other public WiFi configurations that work on Windows or Apple but not systemd. Hopefully the solution will allow it to fallback to older functionality to fix this common use case. On the bug report at the top, you have the option share that this bug affects you too, and/or be notified when resolved.


Kubuntu proprietary drivers vs open source

In my experience proprietary drivers gives better performance. Given so little information it's hard to give a more in depth answer.


Are there any shortcuts to adjust the volume on ubuntu 20.04? My keyboard or headphones do not have dedicated media buttons on them?

you can add your own keyboard shortcut from settings
For this :

Go to settings.
Go to "Keyboard Shortcuts"
in search bar of "Keyboard Shortcuts" search using this keyword : "volume"
You will see three options : Volume Down , Volume Mute/Unmute , Volume Up
click on any option
set your own keyboard shortcut
Click "Set"
Now you can use that shorcut to control your volume


This missing gateways were the problem to the solution ;)  Works much more betterer that way.

route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1

repeat for each nic

Without the gateway even if it knows the network is there it won't work


Just saw a link about something similar: Ubuntu Wiki Troubleshooting X freezes, hangs, and lockups. It may or may not be your problem, but that's a starting point.


Mono-based GTK# packages are available in the Bionic repository.

You can start with installing of examples:

sudo apt-get install gtk-sharp2-examples gtk-sharp3-examples

Then run them

/usr/share/gtk-sharp2-examples/button.exe
/usr/share/gtk-sharp3-examples/button.exe

or view their code

xdg-open /usr/share/gtk-sharp2-examples/ButtonApp.cs
xdg-open /usr/share/gtk-sharp3-examples/ButtonApp.cs

Also you can download source package of gtk-sharp2-examples, edit and compile examples from it:

sudo apt-get build-dep gtk-sharp2-examples
apt-get source gtk-sharp2-examples
cd gtk-sharp2-2.12.40/
./configure
make -j3

cd sample # go to examples
xdg-open ButtonApp.cs # do some edits edit
make # compile
./button.exe # see changes


I would switch to Ubuntu Classic until bugs are fixed with graphics cards. I know that nVidia is the worst for that, this is the first ATI that I've seen. I would file a bug report.


Dual boot problem with ubuntu and windows 7

I hope you didn't select to install Ubuntu only, instead of alongside accidentally. You could check if there is an existing ntfs partition using the file manager or gparted to check if both OS's are installed.

Other than that I would recommend to use boot-repair, which is a tool to repair the boot. It pretty much reinstalls grub, the boot-loader which lets you select the OS at each startup. see: https://help.ubuntu.com/community/Boot-Repair


Is it necessary to add an HP printer to CUPS using the hplip URI?

As far as I know hpijs will be deprecated, so I would not recommend using it. For some reason hplip software tries to use the deprecated package by default in some installs. Check this bug report in launchpad.

You can try to dowload manually the hp driver from their website, extract the package and select the PID file manually from the extracted folder.


How can I directly boot into Ubuntu touch from my PC?

The answer to your question might be found at https://wiki.ubuntu.com/Touch/Install.  If you boot from a live CD, and make all the modifications on that device, it should become what you are looking for.


install ubuntu on laptop with windows 8 32bit

It should work.

But if your computer only supports 32-bit, use 32-bit. If it supports 64-bit, then use 64-bit.

You see, people would ask you to disable the Secure Boot, but as soon as it wasn't pre-installed the it won't have UEFI.

While booted in Windows 8, press the .iso file/ Ubuntu image.

At the screen, choose 'Install Ubuntu'.

Now choose 'Install Ubuntu alongside Windows 8'.

If this screen comes up, choose how much memory you want Ubuntu to have.

Now click 'Install Ubuntu'.

It may come to this screen.

Look at those top tips to get the most out of Ubuntu!

Enjoy!


How do keyboard shortcuts work in Ubuntu?

The keyboard shortcuts for nautilus are defined in ~/.config/nautilus/accels file.


Trendnet TEW-624UB 300Mbps correct optimized driver

Solved. My blog with other OS too...
http://tuxstack.wordpress.com/2013/10/23/install-drivers-for-wifi-usb-adapters-trendnet-tew-624ub-tp-link-wn821n-asus-edimax-etc-on-linux/

Trendnet TEW624UB and Tp-link wn821n have the same chipset. There are many devices which have the same pathetic rtl8192cu wifi chipset.

Apparently, the driver from realtek website is unmaintained and shows up as a 150Mbps driver but is very buggy(already included in kernel). Thanks to Janez troha for maintaining the driver and making it installable for kernel 3.8, 3.10 and as he/she puts it 3.11++.
https://github.com/dz0ny/rt8192cu

The rtl8192cu works 24/7 without glitches with the change Janez has made to the source.

You can check with iwconfig or network-manager applet to see the speed of data transfer, it will clearly show it is 300Mbps and NOT 150Mbps.

I hope realtek provides better support for linux.

Further linked to : Installing Workaround RealTek Drivers for EdiMAX, but getting error
&&
Installing Workaround RealTek Drivers for EdiMAX, but getting error


Confused as to the procedure to install a java application

Question 1:
There is no definite answers of where to install, but if you want suggestion, I recommend place it to /home/<user>/j-wild-fire (replace <user> to your username) rather than /opt, since /opt require sudo permission to write, this is the reason why you can't create file inside /opt. If you want more about what sudo is, you can read this.
Question 2:

open the terminal by press ctrl+alt+t

install unzip and java if necessary, by enter the following command in terminal

sudo apt install unzip
sudo apt install default-jre

unzip the file

unzip <location_of_your_zip_file> -d /home/<user>/j-wild-fire

run the program

java -jar /home/<user>/j-wild-fire/j-wildfire-launcher.jar

If you want to create launcher, you can follow this, and use the command in step.4


What do the various MaaS node statuses mean?

Commissioning boots the node up using an ephemeral image and runs a
commissioning script.

The script is basically doing a smoke test, and calls
back to the maas server with an API request that tells it commissioning
succeeded (or failed) which makes maas move the node to READY or FAILED_TESTS.

An OS is not installed at that stage, only doing a juju bootstrap does this
(when it's allocated).

We aim to speed things up in the future by using squashfs to skip the lengthy
installation time.


How to start the Ubuntu for arm through U-boot?

There is not a universal guide for installing ARM and with U-boot since the hardware manufacturers in general want to keep their hardware closed. So how difficult his becomes depends totally on the hardware and the manufacturer of that hardware.

See the official documentation section 5.1 has a generic method for identifying and adjusting settings when you need to use u-boot but do read section 3.7 too:

1st part of 3.7:

  3.7.1. Systems with U-Boot firmware

  As already mentioned before, there is unfortunately no standard for system firmware on ARM systems. Even the behaviour of different systems which use nominally the same firmware can be quite different. This results from the fact that a large part of the devices using the ARM architecture are embedded systems, for which the manufacturers usually build heavily customized firmware versions and include device-specific patches. Unfortunately the manufacturers often do not submit their changes and extensions back to the mainline firmware developers, so their changes are not integrated into newer versions of the original firmware.

  As a result even newly sold systems often use a firmware that is based on a years-old manufacturer-modified version of a firmware whose mainline codebase has evolved a lot further in the meantime and offers additional features or shows different behaviour in certain aspects. In addition to that, the naming of onboard devices is not consistent between different manufacturer-modified versions of the same firmware, therefore it is nearly impossible to provide usable product-independend instructions for ARM-based systems.

In case you do have a system that is known section 5.1.3.1 details how to do this. There are general guidelines though and you will likely need to adjust for your specific case.

  5.1.3.1. TFTP-booting in U-Boot

  Network booting on systems using the U-Boot firmware consists of three steps:

  a) configuring the network,
  b) loading the images (kernel/initial ramdisk/dtb) into memory
  c) actually executing the previously loaded code.

  First you have to configure the network, either automatically via DHCP by running

setenv autoload no
dhcp

  or manually by setting several environment variables

setenv ipaddr <ip address of the client>
setenv netmask <netmask>
setenv serverip <ip address of the tftp server>
setenv dnsip <ip address of the nameserver>
setenv gatewayip <ip address of the default gateway>

  If you prefer, you can make these settings permanent by running

saveenv

  Afterwards you need to load the images (kernel/initial ramdisk/dtb) into memory. This is done with the tftpboot command, which has to be provided with the address at which the image shall be stored in memory. Unfortunately the memory map can vary from system to system, so there is no general rule which addresses can be used for this.

  On some systems, U-Boot predefines a set of environment variables with suitable load addresses: kernel_addr_r, ramdisk_addr_r and fdt_addr_r. You can check whether they are defined by running

printenv kernel_addr_r ramdisk_addr_r fdt_addr_r

  If they are not defined, you have to check your system's documentation for appropriate values and set them manually. For systems based on Allwinner SunXi SOCs (e.g. the Allwinner A10, architecture name “sun4i” or the Allwinner A20, architecture name

“sun7i”), you can e.g. use the follwing values:

setenv kernel_addr_r 0x46000000
setenv fdt_addr_r 0x47000000
setenv ramdisk_addr_r 0x48000000

  When the load addresses are defined, you can load the images into memory from the previously defined tftp server with

tftpboot ${kernel_addr_r} <filename of the kernel image>
tftpboot ${fdt_addr_r} <filename of the dtb>
tftpboot ${ramdisk_addr_r} <filename of the initial ramdisk image>

  The third part is setting the kernel commandline and actually executing the loaded code. U-Boot passes the content of the “bootargs” environment variable as commandline to the kernel, so any parameters for the kernel and the installer - such as the console device (see Section 5.3.1, “Boot console”) or preseeding options (see Section 5.3.2, “Ubuntu Installer Parameters” and Appendix B, Automating the installation using preseeding) - can be set with a command like

setenv bootargs console=ttyS0,115200 rootwait panic=10

  The exact command to execute the previously loaded code depends on the image format used. With uImage/uInitrd, the command is

bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

  and with native Linux images it is

bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}

  Note: When booting standard linux images, it is important to load the initial ramdisk image after the kernel and the dtb as U-Boot sets the filesize variable to the size of the last file loaded and the bootz command requires the size of the ramdisk image to work correctly. In case of booting a platform-specific kernel, i.e. a kernel without device-tree, simply omit the ${fdt_addr_r} parameter.


Using grep in /etc/passwd to fetch list of users and system users, discriminating both

This awk command does what you want. First, you set the record separator to : with FS=":", check if the third element is 1000-60000, and if so, print element 1 (username):

awk 'FS=":" {if ($3 > 999 && $3 < 60001) print $1}' < /etc/passwd


Setting permissions for home server directories

Since I cannot comment to ask for your smb.conf I will just try my best to answer your question. First of all I have not tried these and have only found them through research.

Open a terminal (Ctrl+Alt+T) and edit your smb.conf by typing in: gksu /etc/samba/smb.conf
In that file, find your different shares and make them look like this (keep the name of your share and the path the same):

[someshare]
    path = /somewhere
    read only = No
    writeable = Yes
    guest ok = Yes
    create mask = 0777
    security mask = 0777
    directory mask = 0777
    force create mode = 0777
    directory security mask = 0777
    force directory mode = 0777

Save the file (Ctrl+S) and close the window.
Finally run sudo service smbd restart to restart your samba server and it should now be working.


Wow!  Trip down to memory lane...

This is a typical PC-DOS problem that was never decently solved on DOS either.  This depended (and apparently still depends) entirely on your printer supporting cp437...

The only way I ever solved this problem 25 years ago was to use the IBM ProPrinter or the Tandy DMP-80 as those were one of the few printers that supported cp437.

That being said, depending on the DOS application you're using, you might still find printers (Epson comes to mind) that wrote "drivers" for some of the applications (Lotus 1-2-3 comes to mind) that did a simple translation of the cp437 to their internal character set.

(Epson never solved the problem of the line drawing characters in a decent way, so don't run out and buy one of them right now!)


I can't locate and remove file in ubuntu 14.04

If you can see the file name you can use locate <filename> or find -name <filename>

But I think in dash you should be able to click on the file and see the file location by clicking Show in Folder button.


can i use Mesa 18.1.1 as intel graphic driver and nvidia 415.25 graphic driver for nvidia 940mx and switch them using sudo prime-select?

Since I did full research on this, I think I can answer my question by my self. So there are little conflicts between Mesa and Nvidia graphics drivers. If you installed both of them in the boot time you will see something like "Disabling IRQ 16" which reflects there are some conflictions among drivers. The confliction because Mesa has its own Vulkan drivers and also Nvidia too. So ubuntu confuses which Vulkan driver to be used at the boot time.

So the best approach is to use Nvidia Vulkan drivers and avoid installing Mesa Vulkan drivers, So you will be fine


How to remove persistent favorite from KDE Menu in Plasma 5.x?

This issue is almost guaranteed to be this bug.  TL;DR: it was fixed sometime in June of 2020, after first being reported in 2017.
The short and sweet solution, probably still required even after plasma upgrades:
$ sqlite3 ~/.local/share/kactivitymanagerd/resources/database
sqlite> DELETE from ResourceLink where targettedResource='kate.desktop';
sqlite> DELETE from ResourceLink where targettedResource='org.kde.kate.desktop';

Change we'll be applied next time you login again.


use the -r0..-1 option with bzr merge

Example:

 bzr merge lp:~mhall119/ubuntu-app-reviews/mangar -r0..-1

I found this answer here

I like this solution better than the currently accepted answer, because now you should be able to still merge future changes from upstream, and it should "just work"

Also, it might be beneficial for you to branch from the existing project, then move everything to a subdirectory, then commit, then merge from that new branch with -r0..-1

Example:

 cd ..
 bzr branch lp:~mhall119/ubuntu-app-reviews/mangar mangar_branch
 cd mangar_branch
 mkdir mangar
 bzr add mangar
 bzr mv * mangar
 bzr commit
 cd ../${YOUR_TARGET_BRANCH}
 bzr merge ../mangar_branch -r0..-1


The following setting is in /etc/default/snmpd. The Permission Denied message goes away when I change to Ls3d from Lsd, so I assume that it is related to log level.

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

I found some information about snmpd log level in this question on ServerFault.


Going from a shared NFS /home to a full LDAP solution

You can try eBox for the server, it has a very straightforward web interface, you can install it from the repositories, and has all the functionality you need. The whole process is documented in the Ubuntu Server Guide, check https://help.ubuntu.com/10.04/serverguide/C/ebox.html.

However you still would have to take care of the configuration in the client workstations.


Booting from Live USB leads to command line instead of menu

Turns out, the problem was that I had a copy of Windows installed in legacy mode. After forcing legacy in bios and forcing the USB to appear a hard disk, the live USB booted into menu. Writing this as Ubuntu installs.


Set graphics driver to nouveau for specific grub menuentry

It's not enough to blacklist the nvidia driver on the kernel command line, you also have to remove the nouveau blacklist from files in /lib/modprobe.d/
After removing the blacklists there, you can adjust grub entries that they load the desired driver and blacklist the other driver for both modprobe and the initrd.
To load nouveau:
modprobe.blacklist=nvidia systemd.setenv=GPUMOD=nouveau rd.driver.blacklist=nvidia nouveau.modeset=1 nvidia.modeset=0

To load nvidia
modprobe.blacklist=nouveau systemd.setenv=GPUMOD=nvidia rd.driver.blacklist=nouveau nouveau.modeset=0 nvidia.modeset=1


How do I start the GUI (Window Manager?) over VNC?

Try editing the xstartup file:

vi $HOME/.vnc/xstartup

add following lines to the file

#!/bin/sh
unset SESSION_MANAGER
exec sh /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 1280x1024+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

Start vnc server:

vncserver -geometry 1280x1024 -depth 24

If you are accessing your remote machine, then remember to forward the ports of vncserver.


Is bumblebee still relevant for Ubuntu 14.04 and up?

It is in the NVIDIA Settings which is installing with the nonfree driver, but I don't switch often to compare performance.


meaning of *Supports network install?* and *Works "out of the box"*

A "network install" is something that an administrator can do from a remote computer, as soon as the physical network card has been placed into the local computer. The advantage then is that the administrator does not have to come round to the local machine to install drivers or other software. This would be useful if a large number of systems in a wide geographic area are to be installed with new hardware.
For this, the local computer would then need either a second network card that already works, or the network card would need to "work out of the box", meaning: would work without installing additional drivers. (The image is of you taking a brand new network card out of the box that you bought it in, placing it in the machine, and noticing that it works straightaway). In the latter case, it is possible that the network card works well enough to connect to the network, but perhaps not with all available features.


Prevent GRUB from recognizing Windows volume

Grub2 remembers where to reinstall on major updates. You should change that setting.

To see what drive grub2 uses see this line   - grub-pc/install_devices:

sudo debconf-show grub-pc

sudo grub-probe -t device /boot/grub

If you un-select everything or install to a partition which we never recommend, it will not reinstall to a drive's MBR.
Re-check with above on install_device setting.

to get grub2 to remember where to reinstall on updates:

sudo dpkg-reconfigure grub-pc

Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions


How to manually install PHP and Apache in Ubuntu 14.04 without using apt-get

i think you know that you will have to keep track of security fixes and bugs for your LAMP Setup then. Apt would kind of do this for you implicitly.

Well how far did you get then? There should be documentation for each part of your setup like here for php: http://php.net/manual/en/install.unix.php

Learning how to gain knowledge by yourself is imo the most important thing, cause its universal. Imo this makes it more important than how to find out to build your own lamp.

regards


You have "Tap to click" enabled in "Settings" - "Devices" - "Mouse and Touchpad". This is actually quite sensitive and easily triggered even while typing.

Install "Gnome Tweaks" and on the "Keyboard & Mouse" tab, make sure "Disable while typing" is enabled for the touchpad. They may already greatly improve the situation. However, if you are using synaptics, there used to be an issue on Dell XPS machines where two touchpad drivers were present. synaptics would then interact with the driver that was not effectively used, making it impossible to turn on "disable touchpad while typing". Disabling the unneeded driver then made it work.

Better still might be to switch to the libinput driver if you are using synaptics.
Using the libinput driver rather than the older synaptics driver greatly improves the experience. libinput is the default on newer Ubuntu versions. Ubuntu 16.04 may still use the synaptics driver. So using a more recent version of Ubuntu (Fresh install, no upgrade) may also improve thinks. Or, if you see you are currently using synaptics, you may try switching to the libinput. To check, install "Synaptic Package Manager" (Synaptic here is not related to synaptics driver) and see which of the packages xserver-xorg--input-synaptics or xserver-xorg--input-libinput is installed. If both are installed, remove synaptics, if only synaptics is installed, remove it and installlibinput. Reboot. This should force your system to uselibinput`. Still check on Gnome Tweaks to eventually enable "Disable while typing".

Finally, you could set up a hotkey allowing you to disable or enable "Tap to click" quickly. Following script will do the trick

#!/bin/bash
STATUS=$(gsettings get org.gnome.desktop.peripherals.touchpad tap-to-click)
case $STATUS in
    true )
        gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click false
#       notify-send "Tap-to-click Off"
    ;;
    false )
        gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
#       notify-send "Tap-to-click On"
    ;;
esac

Make it executable and assign it to a hotkey (I use Ctrl+Esc). However, recently discovering that installing Xubuntu (next to Ubuntu) made my laptop use synaptics, and then reverting to libinput (after removing Xubuntu desktop) removed that need for me.


How to get specific information from two text lines and assemble a filename from that

Here's a horribly convoluted shell one-liner (using the date format you mentioned in chat):

$ name=$(printf 'backup-logfiles-%s-til-%s' $(date -d "$(head -n1 logfile | grep -oP '\[\K\S+' | sed 's|/| |g; s/:/ /')" +%Y-%m-%d-%H:%M:%S) $(date -d "$(tail -n1 logfile | grep -oP '\[\K\S+' | sed 's|/| |g; s/:/ /')" +%Y-%m-%d-%H:%M:%S))
$ echo $name
logfiles-2017-01-21-14:53:49-til-2017-12-20-16:17:50

To get the start and end variables separately, do:

$ start=$(head -n1 logfile | grep -oP '\[\K\S+' | sed 's|/|-|g; s/:/ /')
$ end=$(tail -n1 logfile | grep -oP '\[\K\S+' | sed 's|/|-|g; s/:/ /')
$ echo "backup-logfiles-$start-til-$end.tar.gz"
backup-logfiles-21-Jan-2017 14:53:49-til-20-Dec-2017 16:17:50.tar.gz

Or, if you want a numerical date:

$ start=$(date -d "$(head -n1 logfile | grep -oP '\[\K\S+' | sed 's|/|-|g; s/:/ /')" +%Y-%m-%d-%H:%M:%S)
$ end=$(date -d "$(tail -n1 logfile | grep -oP '\[\K\S+' | sed 's|/|-|g; s/:/ /')" +%Y-%m-%d-%H:%M:%S)
$ echo "backup-logfiles-$start-til-$end.tar.gz"
backup-logfiles-2017-01-21-14:53:49-til-2017-12-20-16:17:50.tar.gz


It seems you have cloned the partition /dev/sdb1 rather than the whole drive /dev/sdb.

ddrescue is a very powerful tool to rescue what it possible to read (also difficult to read due to failing hardware). But it is dangerous (like standard dd), because it does what you tell it to do without questions.

So it is important to double-check and triple-check that you understand what you are doing, and that there is no typing error. Otherwise you might overwrite the family pictures or some other important data in another drive, which 'should not be involved' in the cloning and recovery processes.

That said, it is a good idea to start by cloning the damaged drive and to do the recovery attempts on a cloned copy. And ddrescue is a good cloning tool.
It is more straight-forward to clone from the damaged drive (source) to another drive of at least the same size (target) compared to what you tried (to work with an image file).

Text after the character # is a comment (not used).

sudo ddrescue source-drive target-drive log-file  # generic command line
sudo ddrescue /dev/sdx /dev/sdy sdx2sdy.log       # example

where x and y are drive letters, for example b and c. It is very important to get these drive letter correct (and in the right order). Otherwise you can detroy important data.

You can get help to identify the drives with the following commands

df
sudo lsblk -f
sudo lsblk -m
sudo parted -ls

The info page

info ddrescue

contains a very good tutorial. Please read it carefully before you use ddrescue again.

If only the file systems are damaged (not the memory cells or internal data management in the USB drive), you can use mkusb to clone the drive. It is installed from a PPA, and will help you identify the target drive, which will reduce the risk. mkusb version 12 alias dus can be used like this,

dus /dev/sdx   # where x is the drive letter of the source (for example b)

Finally, see the following link for more tips about repairing a USB drive or recovering data from it,

Repair the partition table and file system of a pendrive


This:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Should be this:

sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE


How do I determine my drive's file format?

To find out what type of file system the currently mounted drive is running use this command:

df -T

For more on the "df" tool you can visit the man page via:

man df

(press q to exit)


ubuntu disk partition in dual boot for use data science and android studio

/ versus /root partitions

You need one / partition. This is often called System Root Partition. You don't normally need a separate /root partition. The /root is the "home" of the root user. In olden times Linux users used to login as root. Some still do. Local root login is disabled in Ubuntu by default for security reasons. I don't think you need a /root partition.

You do need a / partition. This is something similar to the "C Drive" in Windows. Without this partition Ubuntu won't install.

/ or /home which need more space?

It depends on what you plan to do with the computer.

More Space in /

If you want to run web servers or develop web pages or web based
services, then / may need more space. Note: Some Machine Learning and Deep Learning tools work as web based services.
If you play a lot
of Linux native games or install a lot of Linux native applications,
you need more space in /.

More Space in /home

All personal files, documents, music, videos, go to /home. You can put them in the shared NTFS partition (D Drive). See Windows Ubuntu dual boot - Share files between OS for more.
If you buy and play Steam games in Ubuntu, those games and the game
data will go to /home.
If you use wine to install Windows applications in Ubuntu, those
software, and their data will all go to /home.

As a new user of Ubuntu you may not know yet which of these things you will be doing. Therefore, I recommend you do not create a separate /home partition. If you use the default Ubuntu installation then it will create a single / 250 GB partition. /home will be a folder in it. This will give you the most flexibility in terms of using Ubuntu.

See What are the advantages and disadvantages of mounting various directories on separate partitions? for more.

Swap Partition or File

Current versions of Ubuntu do not create a swap partition, and you should not either.

EFI System Partition (ESP)

This partition should already exist in your 1 TB SSD, as this is the only drive and Windows came pre-installed in it. You don't need to mess with it. Ubuntu will install the grub bootloader and part of it will go to this partition provided you booted the Live USB in UEFI mode. More on this below. You don't need to create a new ESP or install a different bootloader.

Something Else or Alongside Windows

I recommend the Install Ubuntu Alongside Windows. If you create an empty space 250 GB that is unallocated in Windows, then Ubuntu installer will find it and use it to create the 250 GB / partition.

boot USB in UEFI mode

This is very important. When you select to boot from the Ubuntu Live USB (AKA the Ubuntu Installation USB), make sure you choose the one that says UEFI. You may see options like:

Boot from internal drive
Boot from USB
Boot from USB UEFI

Choose the USB with UEFI. Ubuntu installation will work differently if you choose the wrong one. See Installation problems with GRUB, can only install by reinstalling Windows in legacy mode but need to keep in UEFI mode for how to distinguish between the two, after you select USB boot.

Hope this helps


i cant find a way to return my 3D setting on

To change to UBUNTU (unity 3D) you have to select the session at log in time by clicking on the circle on the upper right corner of the username screen and then select UBUNTU

Click on the upper right corner button as you see here-

Then you will get the following options(Atleast UBUNTU and UBUNTU 3D will be definitly be there)

FROM THERE SELECT UBUNTU

you will enter Unity 3D


16.04 MATE How to add Greek keyboard layout support

I would recommend to disable IBus and use XKB instead.

On clean fresh Ubuntu MATE 16.04 LTS VM the reproducible way to add Greek is the following - we change the /etc/default/keyboard to the following contents:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,gr"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

then update initramfs for all kernels by sudo update-initramfs -u -k all and reboot.

For your pre-configured system we can do the following:

Disable IBus by visiting gnome-language-selector and setting Keyboard Input Method to None
Reset MATE keyboard preferences with

gsettings reset-recursively org.mate.peripherals-keyboard-xkb.kbd

Add Greek keyboard layout again

gsettings set org.mate.peripherals-keyboard-xkb.kbd model "'pc105'"
gsettings set org.mate.peripherals-keyboard-xkb.kbd layouts "['us', 'gr']"
gsettings set org.mate.peripherals-keyboard-xkb.kbd options "['grp\tgrp:alt_shift_toggle', 'grp_led\tgrp_led:scroll']"

Hope this helps.


Hmm, for some reason Horizon tries to reach 'openstack' instead of 127.0.0.1. The easiest way to proceed is to add 'openstack' to /etc/hosts. Here find the line starting with 127.0.0.1 and add 'openstack' to its end. For example:

127.0.0.1   localhost openstack


Missing gnu/stubs-64.h in 32bit ubuntu on 64bit machine while compiling hyperterm

to fix this I've installed: g++-multilib and libc6-dev-amd64


Ubuntu only starts at boot. No option to boot windows

You will need to update your grub boot options. Open your shell from either the menu, or by pressing the global keyboard shortcut Ctrl+Alt+T, and enter the following command:

sudo update-grub

Upon reboot you should have a timer, and the full list of installed operating systems on your computer.


There is no sound card detected while running in Virtualbox

In a default setup your guest Ubuntu should have all drivers installed needed to use the host sound system for output on a (virtualized) sound device.

When no sound card is detected this usually is an issue with host sound drivers that are not correctly passed through to the Virtual Box sound driver. Re-installing the guest audio system will likely not solve these issues.

To debug this let me suggest the following approaches:

Open a guest session on your virtual Ubuntu to make sure is it not a per-user setting that conflicts with the audio system.
Boot your VM with identical VM setting from an Ubuntu installation ISO with "Try Ubuntu" to exclude a bad install of the audio system on the already installed Ubuntu.
Make sure you have the following settings for your virtual machine running on a Windows host:

choose DirectSound as host audio driver.
choose IHC AC97 as a guest controller.
audio should not be muted in the host.

Update host Virtual Box to the latest release (Windows 10 sound issues were only fixed from release >= 5.0.2).
Update you guest Ubuntu distribution with latest kernels:

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

Check that the guest audio is not muted by running alsamixer in a terminal.
If there still is no audio it may help to reinstall the host audio drivers. Host USB audio devices may not work as expected in a virtual machine.


It is GLib, not Glib. You made a typo, it's written with a capital L.


How to restore file copy / transfer status window?

First of all: Check your Files icon in the launcher (on your left for most systems). There will be a little progress bar over if it if it's still copying something.

In that case, if you're lucky, you can restore it in tree ways:

Look for a file copy icon in your system tray (upper right in most systems). If there's one, click it and the file transfer dialog will reopen
Right click on the Files icon in the launcher (yes, the one with progress bar on it) and choose "show copy window"
On your Files icon in your system tray (the one with a progress bar) are some small arrows in its left, one for each window. If you manage to click in the arrow, the corresponding window will open. Your copy window might be one of those

In the case none of this work for you, you might be seeing this bug

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1010132


You can put in as much RAM as your laptop will hold.  64 bit systems have no practical limitations on RAM size.  As said above, an SSD will help with your swap speed.  Your laptop claims to be able to hold a max of 8gb of RAM.  This is likely a limitation of the motherboard, although you can try two 8gb sticks, but no guarantees on that.

In short, it looks like you've maxed out your ram.  Get an SSD.


Ubuntu+wine, USB COM port issue. Simbolic link question

Open a terminal
Run nano fixCom1.sh
Paste this into Nano:

#!/bin/sh
ehco "Removing com1..."
sudo rm ~/.wine/dosdevices/com1
echo "Linking ttyUSB2 to com1..."
sudo ln -s /dev/ttyUSB2 ~/.wine/dosdevices/com1
echo "Setting permissions for com1..."
sudo chmod 666 ~/.wine/dosdevices/com1
sleep 1

Now, press CTRL+X, then Y and then Enter to write the file to disk
Next, do chmod +x fixCom1.sh
Run nano again with nano ~/Desktop/fixCOM1.desktop
Paste this into Nano:

[Desktop Entry]
Name="Fix COM 1"
Exec=~/fixCom1.sh
Terminal=true
Type=Application

Now you will have an icon on your desktop!


Windows display missing after after Ubunutu 14.04 installation. Boot repair didn't solved

You may have UEFI firmware BUT your disk is not GPT style. You are using MBR booting and CSM (BIOS emulation) in firmware by default.

The system report given by your link says that sda1 is System Reserved and marked as active (boot) partition. This is the place where Windows boot files should be stored.

To fix this issue:

Delete bootmgr and /boot from sda2 (using a Linux Live CD)
Use a Windows 7 DVD/USB to repair Windows booting.

Repair Windows boot
Use a Linux live CD to reinstall GRUB.

How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB


will installing Ubuntu on a partition let me see both Ubuntu & vista on start up

Yes, see it yes. But if Vista is broken Ubuntu/Grub will not fix it. Grub will error out after selecting Vista forcing you to reboot.

  would it repair vista enough to use or rather not overwrite any info

Ubuntu will never fix a Windows operating system. And the installer will overwrite Vista if -you- tell it to do so.

If you have hardware related problems installing Ubuntu will not fix those, if you have problems with a Microsoft version you need Windows tools to fix that problem.

You need to treat Ubuntu as a separate operating system that has nothing to do with Windows. Besides that Ubuntu will let you see the windows partitions and copy files over from it. But on a system level you need the operating system itself.


How to set up Gnome interface for HiDPI screen?

Your best bet is to keep the 3200x1800 resolution and just change the  interface scaling factor of GNOME.
Command line method:
Open a terminal (Ctrl+Alt+T) and execute :
gsettings set org.gnome.desktop.interface scaling-factor 2

You can  reset this setting later by running :
gsettings reset org.gnome.desktop.interface scaling-factor

Graphical method:
You can use the gnome-tweak-tool:
sudo apt-get install gnome-tweak-tool

Go to "Windows" and set "Window Scaling" to 2:

Credit to PCWorld for the screenshot


How to run Windows 7 from real disk in VirtualBox on Ubuntu 14.04 LTS

The remainder of this answer is a log of what worked for me.

I re-installed VirtualBox, and following advice here and 9.9.1.2. Access to individual physical hard disk partitions I created a VDMK file to access the Windows 7 partition.

Tried to create a VM (more than once) and got permission errors. The VBoxManage command created the VMDK as root, so I changed the file owner to my uid. The next permission error was that the my uid didn't have access to /dev/sda. Fixed by adding my uid to the disk group.

Finally the VM started! But grub complained

error: unknown filesystem.
grub rescue>

as in Grub rescue - error: unknown filesystem.

Since making a mistake with grub can be disastrous, I built a new VMDK file to access the whole disk (all on one line):

VBoxManage internalcommands createrawvmdk -filename /home/myuid/mydid/Wholedisk.vmdk -rawdisk /dev/sda

Voilà! The VM started, the grub menu showed, I selected Windows7, and it started.

I think I still have to change grub, so that the default is now Windows 7, otherwise it will try to start Ubuntu, and I'll have two copies of Ubuntu modifying my HD.


Which services are enabled by default in 13.04?

As you said, you upgraded from a previous installation. This means that the default services will vary. In my case I would show Apache and Mysql installed additionally to the ones you pointed out. In other users they would show others.

From a fresh install it would certainly be the same as you but could change if a special hardware device needs an additional service to be able to work correctly.

For what I could compare to your list, I would say we have the same except that I have Apache, MySQL and a couple of more related to servers.


Wanting to Dual Boot to Mac OS X as my second boot, Ubuntu as my first - How do I restore single boot to Ubuntu?

No. You can boot from a primary or from a logical partition
There's nothing magical about "dual boot", and no switching between "dual boot" and "single boot" necessary - this is just a matter of adding another entry to GRUB's boot menu and setting a non-zero boot menu timeout :)

After installing OSX it won't appear in the GRUB's boot menu automatically - you'll need to edit GRUB configs to add an entry for it. See this for more details - the magic word is "chainload".

After you're done with OSX, you delete the partition and edit the configs again, removing the entry.


apt-get really slow but no internet problems

I am afraid it might not be your computer, but your ISP. They are probably throttling your connection when it notices that you are downloading a file. I have heard some ISP's do that to prevent piracy and downloading torrents (and to reduce their bandwidth cost), but this forum isn't about this so I recommend talking with your ISP and explaining to them that you are trying to get packages for your operating system and that you're not downloading movies or something.

Hope this helps!


Has this Windows application been successfully installed via Wine?

If Expresso is just a .Net application, you'd probably have more success running it with Mono .

You can install it with:

sudo apt-get install mono-runtime

Then browse to the application's main executable and run:

mono app.exe

...where app.exe is the executable for the application.


You should try to install otherwise. creates a second partition with gparted, which exists in the ubuntu live pen (resize the windows partition if necessary). and creates another much smaller partition to use as swap. when you run the installer, instead of you select "install alongside windows" option selects the manual. A window will appear with a schematic graph of the disc. selects the small partition(to swap), click Create, and chooses as swap area. then select the larger partition, previously created, and choose ext4 with journal. click "Next" and follow the steps.


Unity (12.04)
Ensure that you are connected to the internet, if you are installing wireless drivers then usually you need to be plugged in via an ethernet cable. Click on the Ubuntu logo in the launcher and type drivers and click on the icon that appears.

If you have hardware for which there are supporting drivers to download, they'll show up in this window and allow you to install them. If nothing shows up in this window then you probably don't need drivers installed for your hardware as they come bundled with Ubuntu.


How can you edit and remove unwanted search toolbar?

Kindly suggest you to follow these steps and let me know if it works ?

Google Chrome users can remove Ask search apps quickly by going to Chrome Settings, clicking the Extensions tab, and then removing the Ask Toolbar extension by clicking the trash can icon next to the search app extension.

Mozilla Firefox users can remove Ask search apps by going to Firefox's Tools menu, selecting "Add-ons," and clicking "Uninstall" next to the name of the Ask search app in the list of installed extensions.


How can I manually change the default web browser?

Run in a terminal:

sudo update-alternatives --config x-www-browser

The output should look like this:

There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                       Priority   Status
------------------------------------------------------------
* 0            /usr/bin/epiphany-browser   85        auto mode
  1            /usr/bin/chromium-browser   40        manual mode
  2            /usr/bin/epiphany-browser   85        manual mode
  3            /usr/bin/firefox            40        manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/firefox to provide /usr/bin/x-www-browser (x-www-browser) in manual mode.

Choose what you want to set as default.


Can I iconify new windows by default in Lubuntu?

First, thanks to your researched question. It would take more time if you did not mention or link that configuration page.

Why your settings didn't work?

Actually, you're looking at wrong settings. What you were changing is mouse focus mode, whether it would follow current mouse or stay unfocused etc.

Correct Settings:

To correctly implement this, you need these changes in ~/.config/openbox/lubuntu-rc.xml file.

In the <applications></applications> tags, create a new <application></application> tab with these settings.

<applications>
  <application type="normal">
    <focus>no</focus>
    <iconic>yes</iconic>
    <layer>below</layer>
  </application>
</applications>

Explanations:

<application type="normal"> sets the rule for all normal windows. Other window types include dialog, splash, menu etc. Look at the lubuntu-rc.xml file for details
<focus>no</focus> - is setting focus for new window. New window will be unfocused
<iconic>yes</iconic> - is setting the windows to start at minimized.
<layer>below</layer> - is setting the window below the current active window. Just to be extra safe.

Suggestions:

You can want to change the combination. For example, it seems, making the layer below and focus to no will achieve the job.

Test Results:

I tested this settings with lxterminal, textadept, leafpad, firefox, gedit. Most of them worked and opened in taskbar.

However, It seems if you start firefox by just typing firefox in terminal, it would raise for apparently no reason after 2-3 seconds. You need to use firefox >/dev/null 2>&1 to prevent this. Also, Gedit seems to be not following these settings. But most of lxde-compatible application should work.

Extra:

I made a pastebin clip in case you need to look at the full file. Here it is http://pastebin.com/f76X8qNy


Snap packages support for Ubuntu 14.04 LTS?

snapd is available for 14.04 now via

sudo apt-get update && sudo apt-get install snapd

Please note that you want to enable -proposed if you are using a desktop image (see Snapd package conflicts with xorg packages for details).


The AppIndicator instance should be initiated from an unprivileged user, such as the current logged into desktop. This is is required so D-Bus communication used between the appindicator and the panel to work.

You should probably run your program as a normal user, and use gksudo only on the portions requiring root access.


error while loading shared libraries: libm.so.6: cannot stat shared object: Error 38

I have found the reason but no solution.
The reason is that the environment I am using has no 32bit support in the kernel.
The environment is UserLAnd running on Android.
The developers confirmed there is no 32bit support.

Thanks to everyone for the help.


Why is the default virtual terminal number 7?

It's not really anything special, and it's not like anyone person said: "YES! TTY7 will forever be the starting point".

Typically when you boot init (upstart) will reserve the first 6 TTYs for text terminals - which leaves the next unallocated TTY, 7, for whatever comes next. Henceforth TTY7 is used when X actually starts. This can be changed to suite your liking in upstart by limiting or increasing the numbers of text TTYs that upstart reserves.

However, it's typically best to just leave the configuration as is.


Ubuntu Software Center: The upload does not appear to be a valid click package

Sounds like you were accidentally in the phone section, clicks are currently for Ubuntu Touch. Click on "Desktop" as shown here:

That should get you in the right section, also remember that you won't get e-mail's for notes on the submission, so check the status and feedback areas often.


I was running windows 7 and ubuntu linux on the same laptop and I upgraded to windows 10

When you install MS Windows 10, it overwrites the Grub contents in MBR to its own. All your Windows and Linux OS files are intact and good.

I tried this and it worked for my HP ENVY 15.

Enter BIOS settings and go to BOOT options,
choose Hard-Disk/SSD as the first boot option,
as it shows a sub menu, press "enter" to see the sub-options,
choose Grub as your first option,
save and reboot.

Or you may need to do here is to repair you GRUB files.

I used boot-repair and it worked very well for me.
If you want to fresh install everything, Install Windows 10 first and then install Ubuntu.
It is possible from that Grub-Rescue terminal itself to repair GRUB as suggested by other answers.


If you unplug a USB flash drive without unmounting it first you can easily have data loss.

The type of messages you are seeing is a reflection that the data is not clean and some of it is thus locked. fsck will fix these issues as well, but sometimes with data loss.

When mounting a file system the kernel prepares the file system for use, and when unmounting the kernel reverses the process including checking that none of the files are in use and that your data has been written to the disk (your data can be cached and not yet written).

See man sync, man fsck, and http://tldp.org/LDP/tlk/fs/filesystem.html for details.


It worked by simply rebooting the system. But as commented by @Kulfy, it is better to restart shell after modifying desktop entries. That way one might not need to restart their system to solve this problem.