How do I shutdown 12.10 when ACPI is set to OFF? I recently installed 12.04 on an HP Spectre XT ultrabook. I installed 12.04 from a USB. When the install was complete, and the computer restarted, I got a blank screen.

After some searching, I found that I had to choose "acpi=off" during the installation, which now shows up in the grub screen.

Once I was on 12.04, I upgraded to 12.10.

The issue now is that when I hit shutdown, the computer hangs on a purple shutdown screen. Usually, at this point, I press the power button on the machine to completely power off the machine.

I am new to ubuntu, and would appreciate the help. Thanks.

I have two machines running Ubuntu. I modified my grub menu on the HP Spectre XT ultrabook to mirror my other machine.

I changed the following lines, from:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_CMDLINE_LINUX="acpi=off"

To

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_CMDLINE_LINUX=""

After doing this, my machine successfully shut down.

There was another problem, when the machine boots up, the LCD backlight is completely dark. I have to increase the brightness using keys on my keyboard, and I am then able to see the login screen.

This has been happening to me every once in a while on my Toshiba Satellite L300D laptop since 12.04 and it occurred a couple of times to me after installing 12.10. On my computer it didn't happen all the time.  I'd estimate about 1 in 15 shutdowns would result in an endless purple screen that required holding down the power button to force a shutdown of the computer.

It hasn't happened for a while now, however, and I think it has something to do with my recently having disabled the "speech-dispatcher" service at start-up (It always seemed like the last thing Ubuntu would try to shutdown before hanging.

I have no reason why this would have helped, but if you want to give it a try, it can't hurt anything (unless you need your computer to talk to you!)

Install Boot-up Manager (BUM)

$sudo apt-get install bum

Open boot-up manager from the dash and then uncheck the box beside "speech-dispatcher" save and quit. At the very least you will save yourself some RAM and make your boot-up and shutdown times quicker, and hopefully solve stop the shutdown from hanging (fingers crossed!)

All that said, even if it works it is just a work-around. I think this is a bug and needs to be reported.

Cheers.


How can/Can I run the game Garry's Mod on Ubuntu 14 via Wine? I have checked Google and the Wine Website. Google only gave old tips and Wine didn't say about running the game.

Is there a way I can play Garry's Mod through Wine on Linux? I don't want to download the steam version, because that means downloading all the libraries and the entire game again (and I have slow Internet). I have a fresh copy of Wine, no configurations except I set compatibility mode to Windows 98 and disabled dwrite.dll. Is there a way I can play the game through Wine?

If i join a server it crashes at Sending Client Info, and if i play singleplayer it crashes 1-2 seconds after playing a little bit.

It doesn't matter if I cant play Singleplayer. I only want to play Multiplayer. Things I've tried:

-dxlevel 81
Disabling all addons
Setting compatibility mode to Windows 98
Disabling dwrite.dll

Update:

Now it lags and crashes while playing for 3 seconds on multiplayer.

Wine does not work well with games, seeing as they are complexly written. Instead you should use PlayOnLinux, a better alternative that's also free.


Line 6 POD X3 Functionality is there any way to install Line 6 POD X3 drivers on latest Ubuntu version so that I can start recording my band tracks?
If so, what's the current best recording-app choice for doing so?

Thanks, first time in the AskUbuntu community!

I have not tried this, but I found these instructions here. The link is a couple of years old but the software is still there.

First, some build tools are installed, such as Subversion (svn) for version control. Subversion then pulls the latest stable version of the driver from the Internet and places it in a separate directory line6usb. The next step is to build the driver and install it. If everything works, feel free to remove Subversion and the other build tools.

sudo apt-get install gcc make subversion alsamixergui linux-headers-generic
sudo svn co https://line6linux.svn.sourceforge.net/svnroot/line6linux/driver/trunk line6usb`
cd line6usb
sudo make install

Then you have to find your soundcard with:

cat /proc/asound/cards

This tells you how your Line 6 device viewed by the computer ('hw:' number). Replace 'hw:1' with whatever shows up for your sound card when you type:

alsamixergui -D hw:1

You HAVE to turn the 'monitor' slider all the way down or things will crash (unless the 'svn' site has a newer version that fixes this).

In case someone needed an up-to-date link, here's a link to the repo:

svn co https://svn.code.sf.net/p/line6linux/code/ line6linux-code

svn can be installed by

sudo apt install subversion


How to install Windows 7 from DVD? I installed Ubuntu 12.04 in my laptop. Now I want to remove Ubuntu and I install Windows 7.

But when I restart my system after keeping Windows 7 DVD it is not booting.

What should I do to get rid of this problem?

I have tried to modify many options, but none of them had worked out?

You would have to install windows 7 first (So it can boot from MBR) Then Install ubuntu alongside windows. Wubi installer and I think there is a option to set a different partition to dual boot for ubuntu


I accidentally ran "sudo umount -a" and now have no access to anything Now I can't remount anything and get access back. How can I fix it?
sudo returns

sudo: effective uid is not 0, is /usr/bin/sudo on a filesystem with the 'nosuid' option set or an NFS filesystem without root privileges?

mount returns

mount: failed to read mtab: No such file or directory

If I try to open anything new I get the message

Failed to execute child
Failed to open PTY: No such file or directory

Just reboot the machine. It is just temporarily and the permanent configuration in /etc/fstab is restored upon reboot.

To avoid rebooting, I believe running sudo mount -a should fix it, as it will then run the mounts specified in /etc/fstab


Headphone/Speaker mixup after upgrading to 11.10 with a Realtek ALC892 It seems quite a few people have trouble with their speakers/headphones after upgrading tu ubuntu 10.10, but my problem is slightly different.

I have a desktop pc with a Realtek ALC892.

I have no speakers connected to the computer, but occasionally plug headphones into the front jack. When I do this, the field "connector" in the sound settings dialog switches from "analog speakers" to "analog headphones", but then I hear no sound at all through the headphones. Only when I manually switch said field back to "analog speakers" can I hear something.

The funny thing: If I plug in the headphones and try to fiddle with the controls in alsamixer (which means trying out setting different levels for different devices) nothing happens. The only way to get sound on my headphones is to always manually switch the "connector" to "analog speakers" in the dialog box.

I did not have these troubles in Ubuntu 11.04.

Any suggestions?

I had exactly the same issue and installed the latest Alsa driver :
see https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
and https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/565685


xmodmap Right CTRL to work as Right SHIFT I've tried searching a lot with no success. I know this can be done because I have done it before, but since then I've reinstalled the OS.

I know that I used xmodmap to do this the last time.

My reasoning for this is because both shift keys are broken on my laptop so I've trained myself to use right-ctrl as right-shift.

I know that my laptop has right-ctrl as keycode 105. As far as I can tell left shift is keycode 50 and right shift is keycode 62.

I've tried doing the following things:

xmodmap -e 'keycode 105 = Shift_R' (this shows the right-ctrl key as being right-shift under xev but pressing it actually does nothing)

xmodmap -e 'keycode 105 = 62' (this outputs >)

xmodmap -e 'keycode 105 = 50' (this outputs 2)

Can someone please show me what I need to do in order to make this work and make it work as a permanent change? This is an unusable OS for me until I can do this. I manged this in Windows in just a few minutes! :(

In order to edit a special key/signal, you have to clear it in the beginning of ~/.Xmodmap. For example:

clear Shift_R

and then add the new signals at the end of ~/.Xmodmap. It may be helpful: https://wiki.archlinux.org/index.php/Xmodmap

Write your expressions in ~/.Xmodmap to make the changes permanent.


How to change mouse speed/sensitivity? I am on an Asus Zenbook UX32VD in Ubuntu 12.10. Both in 12.04 and 12.10 I haven't been able to change the mouse speed (i.e. the "sensitivity" in the mouse/touchpad dialog). I can change the slider, but nothing changes.

This is a big problem for me, since the mouse speed is somewhat slow. Any suggestions?

The problem is both for the touchpad and mouse.

First we need to identify the input device ID to change the speed/sensitivity. Open a terminal and run this command:

xinput --list --short

output:

abcd@abcd-abcde:~$ xinput --list --short

Virtual core pointer

↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]

↳ Logitech USB RECEIVER                     id=12   [slave  pointer  (2)]

My pointing devices are a Logitech USB RECEIVER and a Synaptics TouchPad.
To list out device properties:

xinput --list-props "SynPS/2 Synaptics TouchPad"

EDIT:

Another option:
xinput --list-props 11 as 11 is the number that is shown above in its parent property (SynPS/2 Synaptic TouchPad).

Now reduce it's property values to suit your need:

Device Accel Constant Deceleration (267):   2.500000

using this command:

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

EDIT:

Another option:
    xinput --set-prop 11 267 1.5 where 11 is the device, just like from above, 267 is the id of the device property (Device Accel Constant Decleration) as you can see when device 11 is being listed all of properties being attached, and finally 1.5 is your desired speed.

You may have to play around with this number a bit to set it exactly as you need.

If you need to set this value automatically every time Ubuntu starts then:

create a .sh file

#!/bin/sh

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

change the file to executable :

chmod +x

and Put this in the start-up applications list.

Source : Configuring Mouse Speed manually

I'm running 16.04 on my Mac and xinput worked fine with Magic Mouse. The only thing I needed to do was run it as root:

sudo xinput --set-prop 14 271 3.0

(I'm impressed how speedy was this mouse)


Not able to boot 16.04 LTS in dual boot with window 7 UEFI mode Initially I am not getting the option to install ubuntu along side window 7. So I again installed window 7 in UEFI mode and now able to get this option. But after installing ubuntu 16.04 LTS alongside window 7, I am not able to boot ubuntu 16.04 LTS.

I tried ubuntu boot-repair tool but still getting the same problem. Can anyone help, thanks in advance.

I have win7 at side Ubuntu 16.04

If you want to,too. You should first install ubuntu, then install windows.

And now your ubuntu boot is damaged by win boot but it has nice tools that name of is boot-repair-disk

After installing windows, then by boot-repair-disk go to Ubuntu and repair its boots.

  No need to internet and easy to use

:)

Source : https://sourceforge.net/projects/boot-repair-cd/ (Write on cd or flash boot)

Size : about 700 mp

If you have secure boot enabled in the bios then it will not load the grub bootloader and will always boot into Windows.

You are going to want to boot into bios to turn it off. It is different for each computer however it's usually something like F2 or F8 (or another combination of the Fbuttons).
You should have a menu for "Boot" at the top of the Bios screen. Then look for the boot mode option (should say UEFI). Usually underneath of that is the Secure Boot option. Switch it to "disabled" and then save and exit the bios, after reboot you should see grub menu.

NOTE: Some Bios Software needs an administrator password to be set in the Bios in order to disable Secure Boot. You will have to find that setting and set an administrator password. Do not choose the "Require password on boot" option and you should only need to enter the password whenever you want to enter the Bios settings.


How to create a shared folder using command line on a server After following the tutorial here I ran into a problem. Here is what I did.

On my server I installed nfs-kernel-server and edited the /etc/exports file to include the folder I want to share:

 /var *(rw,sync)

On my client machine I edited my fstab file to include share:

 //128.251.xxx.xxx/var/ ~/uslonsweb003 nfs #username=[username],password=[password], 0 0

Entered command:

  sudo mount -a

which gives this error:

  mount.nfs: remote share not in 'host:dir' format

Where did I go wrong with this setup?

Also if there is a better way (using command line) to setup a folder share on an Ubuntu 10.10 server that will be accessed by other linux and windows machines please let me know.

UPDATE:
The mapped drive is now not letting me create,edit,delete files or folders (readonly access)
my configuration is as follows:

client fstab file:

 128.251.xxx.xxx:/var /home/coreyf/uslonsweb003 nfs rw,hard,intr, 0 0

server exports file:

 /var *(rw,no_root_squash,sync,no_subtree_check)

UPDATE 2:

Using Allans solution my drive mounted correctly however after putting rw,intr as my additional parameters I cannot create, edit and delete folders/files.

I don't think you can give the ~/uslonsweb003 as a directory it would have to be full eg /home/sadmicrowave/uslonsweb003 in fstab (because there may be more than one user)

this is your original

//128.251.xxx.xxx/var/ ~/uslonsweb003 nfs #username=[username],password=[password], 0 0

you don't need the // at the beginning or #username=[username],password=[password],

and after the nfs you should have your options giving you line like this

128.251.xxx.xxx:/var  /home/sadmicrowave/uslonsweb003  nfs rw,hard,intr 0 0

as the folder being shared is a root only folder (it acts exactly like it would on your own machine) you will need to open nautilus as root to be able to edit files.

You can find a list of nfs options and a description of what they do here.

Hope this helps

On server side
your /etc/exports file should be like this

/var         *(rw,sync,no_root_squash)

then run

exportfs -av

On Client side, put this entry in /etc/fstab

128.251.xxx.xxx:/var  /home/sadmicrowave/uslonsweb003  nfs default 0 0

then run

mount -a

Vidyadhar
http://www.techienote.com


How do I make Thunderbird open links in Chromium? I want to be able to click links in Thunderbird emails and have them open in Chromium (package name chromium-browser). Instead, they open in Firefox.

I have tried the following:

xfce preferred applications (Chromium is not listed, so I had to hunt down the executable)
-- next time I run chromium, it complains that it is no longer the default browser.
Telling Chromium to set itself as the default browser. Thunderbird opens links in Firefox.
update-alternatives. It's already listed as an alternative at the same priority as Firefox. The "open web browser" app menu item opens Chromium. Thunderbird opens links in Firefox.

I have looked through the entire preferences gui in Thunderbird (but not the advanced config editor yet) and seen nothing that mentions what browser to open links in.

Please note that this is not Google Chrome.

This is what I found working for me:
You will need to access the "config editor" in Thunderbird itself.

Open Thunderbird. In 24.6.0, the menu can be accessed on the right hand side of the top menu bar (next to the search bar and is represented by three horizontal lines).

Click Edit > then click Preferences >,
a new window will open. You will need to select the  Advanced  tab, at the bottom of that tab Open the Config Editor.

Then, search for both network.protocol-handler.warn-external.http and
network.protocol-handler.warn-external.https.

These two are most likely to have a current value of false. Change the value to true (do this by simply right clicking on them) and the next time you try to open a link from some e-mail it'll ask you which browser to use. Chromium isn't likely to be shown in the list of choices, so use the navigate button. You can find Chromium at /usr/bin/chromium-browser.

If using google chrome as your browser of choice you may want to make it /usr/bin/google-chrome  or /usr/bin/google-chrome-stable
If Thunderbird doesn't ask you which browser to use when you click on a link after doing this, you can try deleting mimeTypes.rdf file in your profile folder to reset it. The profile folder is typically found as ~/.thunderbird/xxxxxxxx.default/

Original text by Htbaa

I also had the same issue. And the "network.protocol-handler.warn-external.http" change did not work for me.

After some Googling i found the setting in the thunderbird preferences > Attachments > incoming.

There i changed the http and the https to the browser of my desire. And it works now.


Is Chromium still under consideration for Unity? During uds-m there were discussions to include Chromium as the default browser for the - back then - netbook edition. However, it was opted to stay with Firefox.

Have there been further discussions at uds-n about this issue?

Firefox (4) was chosen at the recent Ubuntu Developer Summit to be the default for 11.04 Unity Desktop and Netbook Editions.

One of Chromium's biggest drawbacks is working out how to integrate its six weekly release cycle into Ubuntu's six monthly schedule.

Check this url:

Natty’s default app selection

http://www.omgubuntu.co.uk/2010/10/nattys-default-apps-stay-familiar/


Assigning a static IP to Ubuntu Server 14.04 LTS I've installed Ubuntu 14.04 LTS Server in my machine on a separate hard drive alonside my Windows 7 installation. The Windows OS has full network connectivity and internet access through the Ethernet, but the Ubuntu installation does not.

I have a hunch that this could be because my router which sees 2 different computers with the same MAC address, and the DHCP is not working. How do I assign the machine a common static IP so that both partitions can use my network? I am new to Ubuntu and I couldn't figure out which file to edit so that I can assign the static IP.

I'm not sure if this will solve your problem, but this answers your question and I think it's worth a shot.

To assign a static IP, you need to edit /etc/network/interfaces.

The interface will probably be called eth0.

The current entry will look something like:

auto eth0
iface eth0 inet dhcp

You will need to change this to:

auto eth0
iface eth0 inet static
   address 10.253.0.50
   netmask 255.255.255.0
   network 10.253.0.0
   gateway 10.253.0.1
   dns-nameservers 8.8.8.8

You will have to change the numbers around depending on your network, but you can find out the information by checking out ipconfig from Windows.

Make sure you choose an address outside the address space of the DHCP server.

Then restart networking sudo service networking restart. If that gives you trouble, reboot the machine.

Change the interfaces config:
$ sudo nano /etc/network/interfaces
Then replace the following configuration:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens160
iface ens160 inet static
# Enter your specific IP address
        address 192.168.1.130
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8 8.8.4.4

Then trigger it via:
$ sudo service networking restart

or
$ sudo ifdown ens160; ifup ens160

If you encountered with an error, do the following command:
$ ip addr flush dev ens160

[NOTE]:

ens160 is my ethernet name, you can check it via $ ifconfig command.
This works and tested in Ubuntu 14.04 and 16.04.
Here's Ubuntu 18.04 configuration method.


Unity 3D hangs after power blackout Unity 3D was working just fine till we had a blackout in the area (I have not yet bought a UPS :().

I tried the solutions here, but it does not help. I tried issuing a unity --reset and it gives me this output: http://pastebin.com/UW83w5cG

What seems to be important (to me) from that log is this part:

(compiz:6510): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed

ERROR 2012-05-29 21:50:41 unity.launcher.trashlaunchericon TrashLauncherIcon.cpp:62 Could not create file monitor for trash uri: Operation not supported

For the time being, I can use Unity-2D, but I would like the 3D to work as well. Can you please help?

Edit: Output when issuing $ unity --replace: http://pastebin.com/sBCPbyrT

(compiz:2811): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key             (dirname, NULL)' failed
ERROR 2012-06-01 20:21:24 unity.launcher.trashlaunchericon TrashLauncherIcon.cpp:62 Could not create file monitor for trash uri: Operation not supported
Initializing unityshell options...done
WARN  2012-06-01 20:21:25 unity.screeneffectframebufferobject ScreenEffectFramebufferObject.cpp:167 unsupported internal format
Segmentation fault (core dumped)

I finally gave up on Unity and instead installed gnome-shell; it's awesome!


How do I type an `@` (at sign) symbol? I have Ubuntu on my MacBook 2007 with a Spanish keyboard, on MacOS the @-sign was typed using Alt (Option) + 2, but on Ubuntu I have no idea. I have to copy and paste it every time. How do I type an at sign?

Make sure you selected the right keyboard layout. Go to System Settings, click on Keyboard Layout. On the Layout tab you should see a + button. Select the most appropriate keyboard layout as shown bellow.

I am not using a Macbook, but the first layout worked as you described to type @. I suppose you are using Ubuntu 11.10.

I have a macbook pro model 2,2 I found a way to map the 3rd symbol easily.  In ubuntu 12.04, in system setting -> keyboard configuration, choose options, there is a option called 3rd level (in spanish Tecla para seleccionar el 3er nivel), I chose the numeric intro that is the right key beside the right mac cmd key, and there you have it presing that key plus 2 I get the at symbol.


dpkg error: "trying to overwrite file, which is also in..." For example:

$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
bsh : Depends: libjline-java but it is not going to be installed
groovy : Depends: libjline-java but it is not going to be installed
rhino : Depends: libjline-java but it is not going to be installed
E: Unmet dependencies.

Try 'apt-get -f install' with no packages (or specify a solution).

I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.

When I try the suggestion made in the error message, this is what happens:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libjline-java
Suggested packages:
  libjline-java-doc
The following NEW packages will be installed:
  libjline-java
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
23 not fully installed or removed.
Need to get 0 B/72.0 kB of archives.
After this operation, 129 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 226243 files and directories currently installed.)
Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):
 trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400
Errors were encountered while processing:
 /var/cache/apt/archives/libjline-java_1.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 bsh : Depends: libjline-java but it is not installed
 groovy : Depends: libjline-java but it is not installed
 rhino : Depends: libjline-java but it is not installed
E: Unmet dependencies. Try using -f.

To fix your problem run

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libjline-java_1.0-1_all.deb

check everything is fixed by running : sudo apt-get -f install

If you still have problems rerun the first step with any dpkg: error processing (...) remaining

Solution found on webupd8

Not sure that is a global fix as I had the same issue, but with a libglx-mesa file in the cache conflicting with Nvidia-390.  I removed the file and issued an apt install -f -y, let that finished and then proceeded with the apt update, upgrade and autoremove in that sequence.

I got the error while executing an apt dist-upgrade on Ubuntu 18.04 and continued the process again, no more issues and that seemed to be "my" fix.

Commands:

sudo su -
mv /var/cache/apt/archives/libglx-mesa0_18.0.0~rc5-1ubuntu1_amd64.deb ~
apt install -f -y
apt update -y
apt upgrade -y
apt autoremove -y
apt dist-upgrade

PS: Forcing an overwrite was a bad idea that I tried and I got lucky.  But it's better to find the root cause, and fix it.  I still have to investigate but the error lead me to move the file out the way.


Why did wlan0 device disappear? After a fresh install of Ubuntu 12.04 my WLAN would not connect. I guess I messed around too much trying to get it to work, in any case now wlan0 is not listed anymore when doing
iwlist scan.

ifconfig wlan0 up

returns an error

device not found

lspci shows that the computer has a Realtek RTL-8139/8139C/8139C+ Ethernet controller.

Is this on a laptop? If so, many laptops have hardware switches that turn of all wireless connectivity. If you can't find it then turn to the manual of your hardware.

On my laptop it is easy to accidentally switch it off.

You can try unloading and reloading the kernel module for wifi:
lsmod | grep wifi
Unload the modules you see (rtlwifi, iwlwifi of something else)
rmmod
If it says module is in use by:
Unload that module too , remember it
Afterwards, reload the modules
modprobe
modprobe


How do I take a screenshot of the dash, hud, and the application menu? I'm trying to take a screenshot of the the dash, HUD and application menu (separately). But I am having difficulty getting a screenshot: the dash or HUD disappears before I can take it. I would appreciate advice.

Launch the Screenshot application and check the 'Grab the whole screen option. More importantly, set a non-zero value (say 5 seconds) for the 'Grab after a delay of ...' option.

Then press the 'Take Screenshot' button and make sure the dash/HUD etc. is enabled when the screenshot is set to be captured (current time + set delay).

You can do a screenshot with just your keyboard. Use your mouse to keep the dash / HUD not hidden while you're using one of these combinaison of keys :

Prt Scrn for all the desktop
Alt + Prt Scrn for the active window (in my case, Firefox window) -> this combinaison isn't what you're looking for, but you would probably find it useful in other cases
Shift + Prt Scrn for an area you select

The last option can be done with the screenshot software of Ubuntu named screencast


Installation problem during boot Possible Duplicate:
  My computer boots to a black screen, what options do I have to fix it?

I have a HCL ME laptop with the following hardware specifications: Intel dual core T4200 @2.00GHz, 3GB RAM, Video Card: NVIDIA Geforce 8200M G, OS: Windows 7 Ultimate 32 bit.

When I am trying to install Ubuntu 12.04 through a CD/USB drive, it will boot from start menu and after the welcome screen, it only shows me a cursor and nothing else.

Please help me out. Is it possible to install Ubuntu in my laptop or not?

First try refreshing your GUI by typing (CTRL+ALT+F7). If this doesn't work then try updating your computer from the TTY console. You can get to that by pressing (CTRL+ALT+F1). Login in with your username and password, then type

sudo apt-get update --fix-missing

This should fix any missing dependencies on your computer. When you are done, type

sudo shutdown -r now

to reboot your machine.

If any of this doesn't work, reinstall your LiveCD and reinstall Ubuntu.

Good Luck!


Installing Linux on Wyse Cx0: minimal system needed I got my hands on a couple of wyse thin clients Link to Thinclient(Wyse Cx0)

I want to use them for RDP purpose. The original plan was to install Tinycore on them and to use Rdesktop to rdp to the server, but the latest rdesktop (1.7) on Tinycore does not support windows server 2008 R2 (had some issues with my pointer device not showing on screen).

Now what I am looking for is a Linux distribution that uses under 128MB of flash memory and under 512MB of RAM. The OS must be capable of running rdesktop 1.8.3.

Just change the internal flash memory. You can change it up to 8GB than get ddr2 RAM from a laptop and replace it to have a 1GHz 2GB ram and 8 GB internal storage. Then you can run up to Win 8 32-bit if you like. I dual boot mine with Ubuntu 18.04 and Win 7 black edition.


My bittorrent client doesn't load by default I have upgraded from 10.10 to 12.10. When I click a torrent link, it asks what I want to use, but I'm not sure where the application is actually located. Before it would just load Transmission by default. Any ideas about what to do?

The Transmission binary (or link to the binary) is probably located in /usr/bin with the name transmission-gtk.

By default, applications which start at session login time, can be managed by the following menu entry : Menu > Preferences > Startup Applications.  (Menu >  Preference > Application au démarrage in french).

So, you may want to put back the bittorent client into this list.  You only have to know that the command for launching the Transmission Bitorrent client minimised is "transmission-gtk -m" (without the quotes and with the space).  The two other fields "name" and "comment" will not change the behavior of Ubuntu but certainly help you.

The command for launching application may be found in the "edit menu" program.  It edits the desktops files, which is have a bit of complexity but this is an other story.

So, as a conclusion, type in your ubuntu program seach text box "Startup Applications", run the program and let you be guided by the graphical interface.


Battery Indicator Missing, Cannot Install Because No JDK 7 I'm really new to the whole linux deal, but I'm on a laptop and a battery gauge would be extremely helpful.  Whenever I try

sudo apt-get install indicator-power

it gives me:

`Reading package lists... Done
Building dependency tree
Reading state information... Done
indicator-power is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up oracle-java7-installer (7u40-0~webupd8~0) ...
Downloading Oracle Java 7...
--2013-09-24 20:06:32--  http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jdk-7u40-linux-x64.tar.gz
Resolving false (false)... failed: No such file or directory.
wget: unable to resolve host address ‘false’
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)`

Any help would really be appreciated!

@Braiam when I ran the first command to correct the repositories, and it came back with:

Can't rename /etc/apt/sources.list.d/iaz-battery-status-quantal.list /etc/apt     /sources.list.disable.d/iaz-battery-status-quantal.list.disable: No such file or directory
Can't rename /etc/apt/sources.list.d/ubuntu-wine-ppa-quantal.list /etc/apt/sources.list.disable.d/ubuntu-wine-ppa-quantal.list.disable: No such file or directory
Can't rename /etc/apt/sources.list.d/webupd8team-java-raring.list /etc/apt/sources.list.disable.d/webupd8team-java-raring.list.disable: No such file or directory

@Braiam, now when I run it with that line, after every line I enter, there is this response after everything else seems to have worked aside from these:

N: Ignoring file 'ubuntu-wine-ppa-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'iaz-battery-status-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ubuntu-wine-ppa-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'iaz-battery-status-quantal.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

The problem is that you got some mixed repositories. Do this:

sudo rename -n 's/\.list$/.list.disable/g' /etc/apt/sources.list.d/*.list
sudo apt-get update
sudo apt-get -f remove oracle-java7-installer
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get install indicator-power

The first line disable any repository that aren't the official, the second updates the package list, the fourth tries to repair any error, the final install the package.

To install oracle java SDK 7 just search for it in the software center and install it.  If you need to download any other softwares in the future you should check the software center they have a lot of options.


How can I install a package without root access? I have no root access on this machine.

I would like to know if there is a way I can download Ubuntu packages and install them as non-root?

Probably in my ~/bin or ~/usr/share or something like that? Would that work?

Apt doesn't support it directly, but there are ways to do it.

One is to use schroot to create a non-root chroot. This is a somewhat involved process, but one you should be able find community help for as many developers set up chroot environments for compiling code.

The second way I know of is to install from a .deb package. You may be able to download this from a web site or if it's in the Ubuntu repositories you can download with.

apt-get download package

Replace package with the name of the package

Once you have your deb file call dpkg directly from the command line. The following example will install package.deb into your home directory.

dpkg -i package.deb --force-not-root --root=$HOME

The disadvantage to using dpkg like this is that error messages are likely to be cryptic; dpkg doesn't automatically resolve dependencies or create the directory structure it expects.

Finally, you could use the apt-get source command to fetch the source of the package and configure it to install locally. Usually this looks something like:

apt-get source package
cd package
./configure --prefix=$HOME
make
make install

The disadvantage to this approach is that you need the development environment available for this approach to work at all, and you might find yourself compiling dozens of packages in order to resolve all the dependencies.

EDIT:

As dpkg -i doesn't work (see comments), I suggest this alternative:

dpkg -x package.deb dir

This will extract the .deb package to dir. Then you can export the PATH where the binary is. As long as all dependencies of the binary are installed, it should run as normal.

I wrote a program called JuNest which basically allows to have a really tiny Linux distribution (containing just the package manager) inside your $HOME/.junest directory.
It allows you to have your custom system inside the home directory accessible via proot and, therefore, you can install any packages without root privileges. It will run properly under all the major Linux distributions, the only limitation is that JuNest can run on Linux kernel with minimum recommended version 2.6.32.
For instance, after installing JuNest, to install jedit:
$>junest -f
(junest)$> pacman -S jedit
(junest)> jedit


Samsung Intel Graphis HD 3000 + Nvidia GeForce GT 520MX Possible Duplicate:
  How do I install HD3000 drivers on ubuntu 12.04?

I just buy a Samsung NP300E5A-S05IT with a  Intel Graphis HD 3000 + Nvidia GeForce GT 520MX for 3D effect...

The propblem is that my ubuntu 12.04 not support Intel Graphics and also Nvidia 3D support

Some people have same problem? Exist a solution for this problem?

Thanks in advance and sorry from my poor english

Walter

You will have to manually download Nvidia drivers for your Graphics Card.

You can get it from here:
http://www.geforce.com/drivers/results/45532

Intel HD Graphics is supported by default in Ubuntu.


Blank Screen after GUI Install I have installed Ubuntu 12.04.2 x64 without a problem at all and I wanted to install the GUI (Ubuntu-Desktop).

I followed the below Steps:

sudo apt-get update
sudo apt-get install ubuntu-desktop

Ubuntu went through the installation and then the screen on my Acer v193L went black and there is currently no output to the screen. The PC is doing something as the HDD Light flickering none stop.

The PC which I have installed Ubuntu on is a HP 8000 Elite and has an ATI Graphics Card installed.

If someone could point me in the right direction that would be great.

Thanks!!

Have you solved it yet? There seems to be numerous simliar questions on askUbuntu.
The problems usually happen due to drivers ( I had the same issue with my nvidia)

For example:

Here:http://ubuntuforums.org/showthread.php?t=1772710
And here: Blank screen after ATI video card installation on Ubuntu 11.10 amd64


Install CUDA 6.5 instead of 7.5 I try to install CUDA 6.5 (CUDA 7.5 does not support my graphics card) and follow the steps in the getting start guide exactly.

$ sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb

Update the Apt repository cache

$ sudo apt-get update

Install CUDA

$ sudo apt-get install cuda

Perform the post-installation actions

However now cuda 7.5 is installed. How do I install cuda 6.5?

From start:

Download above mentioned .deb:

wget -c http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb

Install it: sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb

Update apt: sudo apt-get update

Install with sudo apt-get install cuda-6-5

Just type:

sudo apt-get install cuda-6-5


Is there any difference between sudo password and the one I used to login? I was under the impression that both the sudo password and the password that I use to login to Ubuntu are the same. But it happened that after logging into the system, tying the password in terminal followed by su, it raises Authentication failure ! error. Aren't they the same ?

sudo, by default, asks for your password, which is the password you use to login. On the other hand su ask for the password of the target user which, unless specified, defaults to root. Note that by default Ubuntu has an invalid password field set for root, effectively making it impossible to login as root.

Your username password and sudo password initially the same unless you change them.You can change the root user password using this command from the terminal

sudo password [username] (for example , root)

sudo -i

sudo passwd root

You should be able to login to root using sudo su from the terminal and then use your password.
Hope that works for you.


WI-FI doesn't work (Hard Blocked) Yesterday I installed Ubuntu 12.04 for the first time (I've always been a Windows user) as I was at the office and I had the Ethernet connected.
At home I only use WI-FI. When I started Ubuntu it didn't connect or try to connect with any network.
By google, I found the command rfkill and these are the results:
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

1: brcmwl-0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

2: dell-wifi: Wireless LAN
    Soft blocked: yes
    Hard blocked: yes

3: dell-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no

Well, the WI-FI is blocked by hardware, so I tried the command rfkill unblock 2 and it didn't work. As I didn't know even my Broadcom model, I found lspci and the result for the WI-FI is:
0e:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)

My laptop is a Dell Vostro 1520 with WinXP also installed.
Thanks for the help!
PS: It also may help that when I enter System Settings > Network (it may be different, my Ubuntu is in Spanish) "Airplane Mode" is connected. When I try to unlock it, it goes to its original place after I close that window and open it again and when I reboot.

Update added from comment to an answer
The Broadcom "Additional Drivers" are turned on and enabled.

After trying several things, I solved it by reseting the BIOS (Lenovo B570).

When you turn on the computer, press F2 to enter the BIOS, then reset it F9 .

echo "options asus_nb_wmi wapf=4" | sudo tee /etc/modprobe.d/asus.conf

This solution solved the problem in an Asus X552C with a Broadcom 43225 wifi card


How do I switch input modes in mozc without going to the IBus menu? I have installed mozc on Ubuntu 14.10. It is working fine - I am able to write in Japanese by going to the icon in the upper-right-hand corner of my screen (what do you call this?) and selecting Hiragana or Katakana from the "Input mode" menu, as in the picture below (ignore the low opacity; I can't figure out how to make PrtSc not close the menu):

However, this is a very slow process. I imagine there has to be a faster way to switch input modes - a keyboard shortcut or something (like on Windows with Google Japanese Input [to which mozc is related], Alt+` switches between Hiragana and Direct Input). What shortcuts are there for switching input modes, and can they be configured?

TLDR
Abstract
Steps to create the Japanese Mozc key bindings, to switch the input modes:

Open a text editor (e.g. Gedit).
Click on Gnome Status menu (Gnome's top-left bar) > IBus menu (i.e. keyboard/input language selector) > Select Japanese Mozc input method.
Again, click on Gnome Status Menu > IBuz > tools > Properties > Mozc Settings window.
From Keymap style section > click on customize button (first one).
Create new entries with your personal shortcuts to duplicate the japanese keys binding: hankaku/zenhankaku, muhenkan, eisu.
If messed things up, click on reset to defaults button from Mozc Settings window.

That's all!
Graphical abstract
Steps to create the key bindings to toggle Japanese syllabaries input mode.

Introduction:
The problem: how to type Japanese using a non-Japanese keyboard?
In Japanese (日本語, nihongo), you need to write using a lot of different symbols-sets.
A informal categorization of these sets can be like:

all alphabets syllabaries (ひらがな hiragana, かたかな katakana, 漢字 kanji, ローマ字 romaji),
(han)dakuten, contractions, combinations and variants (e.g. ゜maru, ゛tenten, uppercase, lowercase, full-width, half-width etc),
symbols in Japanese style (e.g. Japanese period。, 「Japanese quote」, Japaneseーhiphen etc).

So, dedicated keys exists on Japanese keyboards to toggle between them.
An analogy with occidental keyboard are the Capslock key to upper/lower-case or, Shift key to insert symbols.
But the occidental keyboard hasn't these Japanese keys.
So how to type in Japanese using a non-Japanese keyboard?
Solutions
Basically, two solutions can be listed:

install a Japanese keyboard or,
binding Japanese keys, by software level, in your non-Japanese keyboard.

Solution 1: Install a Japanese keyboard
Easiest solution so far.
Acquire one Japanese keyboard, install and configure on your Operation System.
But you need access to one, maybe buying one (with international credit card, taxes, waiting for shipping and so on).
Solution 2: Binding Japanese keys in your non-Japanese keyboard.
It is a cheap solution and you can use it in any keyboard you have.
But you need to install software, configure, and memorize MANY key combinations.
It is basically "a sea of shortcuts" to emulate the Japanese keyboard.
Linux have some software to simulate a Japanese keyboard for using a non-Japanese keyboard.
Let's implement the solution 2.
Theoretical background
Linux input software layers
Our computer can receive inputs from many talked/typed languages and hardware (i.e. different keyboards and layouts).
So it needs to organize the configurations and permit to the user choice between different languages.
For example, a user can type one document in Italian AND English languages, at alternating times.
So the software needs to show the user a way to change the language to be inputted.
The Linux user have 2 layers of software to configure the input method by keyboard:

Input Method Framework (IMF): a class of software that organize the inputs (from keyboard, mouse etc), send to the correct destination (software, systems etc), and configure them.
Input Method Editor/Engine (IME): a class of software that receives the inputted characters (from a keyboard), translate them to the desired input (i.e. idiom, language) and, send them to the Input Method Framework (IMF) to handle them.
Basically, we have: from keyboard > (typed/inputted keys) > IME (receives and translate them) > (translated inputted keys) > IMF (handle translated inputted keys to destinations).

For the Linux user, an example o IMF is IBus; an a example of IME is MOZC.
The first one will switch between all installed IMEs and switch between all idioms/languages installed too.
The second one, if selected, will send to the IMF only Japanese keys, even if you typed in a non-Japanese keyboard.
About Japanese IMEs, you can read more about here, and visualize the states/events in these diagrams:
Diagram 1:

Diagram 2:

Japanese keyboard
Layout
The Japanese keyboard layout (キーボード) is established by Japanese International Standard (JIS).
First of all, let's contemplate the Japanese keyboard!
Watch an open box video.
You can see the vector draw bellow, showing clearly the Japanese keys:

Finally, some real pictures bellow:

Try to identify each key, slowly.
We have:

Roman letter (QWERTY).
Hiragana symbols.
Small hiragana symbols.
Han-dakuten symbols (maru, tenten).
Arithmetic symbols.
Capslock, shift, super, alt, tab, Ctrl, Enter, Backspace.
Punctuation with Japanese style (period, quotes etc).
and some special keys with Japanese words:

muhenkan 無変換: don't convert kana to kanji.
henkan 変換: convert kana to kanji.
hiragana/Katakana/romaji カタカナ / ひらがな / ローマ字:
hankaku/zenkaku 半角 / 全角: switch between half-width or full-width
kanji 半角 / 全角 / 漢字: switch between kanji or English characters.
eisū 英数: switch to alphanumeric characters.

You can have more description of these specific keys here.
And read about the text frequency of hiragana, katakana e kanji and here.
Typing
How a Japanese user type on this keyboard?

Answer 1: type phonetically, using romaji mode. Yes, they use romaji!
Answer 2: it can type in kana mode, too, using hiragana keys.

For example, lets type "kakikukeko" in romaji mode:

First, select romaji mode.
Typing, in a QWERTY keyboard:

type k, outputs: ｋ.
type a, outputs: か (ka).
type k, outputs: かｋ.
type i, outputs: かき (kaki).
type k, outputs: かきｋ.
type u, outputs: かきく (kakiku).
type k, outputs: かきくｋ.
type e, outputs: かきくけ (kakikuke).
type k, outputs: かきくけｋ.
type o, outputs: かきくけこ (kakikukeko).
type ENTER, outputs: かきくけこ (kakikukeko ).

Another example, type "kakikukeko" in hiragana mode.

First, select kana mode.
Typing, in a QWERTY keyboard:

type t, outputs: か (ka).
type g, outputs: かき (kaki).
type k, outputs: かきく (kakiku).
type :, outputs: かきくけ (kakikuke).
type b, outputs: かきくけこ (kakikukeko).
type ENTER, outputs: かきくけこ (kakikukeko ).

And to convert to katakana or kanji is the same thing.
You can toggle to katakana mode or kanji mode and type on romaji or hiragana.
And the computer will pop up an autocomplete window to you select your desired word.
Method
Now, we will use software to type Japanese in a non-Japanese keyboard.
My system when I create this text was:

My OS: Ubuntu 18.04.4 LTS
My Japanese IME: Mozc 2.20.2673.102
My IMF: Ibus 1.5.17
My keyboard: Latin keyboard (with ç, ~, ^ and so on).

Install
Ubuntu came with the IMF IBus (like a built in).
But if you need to install IBus:
sudo apt install ibus

Next, let's install our Japanese IME MOZC:
sudo apt install ibus-mozc

Observation: look at the name of the package ibus-mozc.
Its our IMF + IME names.
So, in future we can search on APT repositories for IMF and Japanese IME alternatives, like ibus-*, or *-mozc.
Installations completed!
Configurations
A Japanese keyboard has many different keys, to switch:
It is necessary to edit and memorize the Japanese input software's (binding) shortcut keys.
Hiragana, katakana, kanji, romaji, upper/lower-case, full/half-width, Japanese symbols (period, quote, maru, tenten etc).
So, you need to memorize/edit the keys to (des)activate the switches.
See the screenshots from before to get a hint of where the MOZC keymap is.
To edit/read these keys on your Mozc:

Open a text editor (e.g. Gedit) and stay with it in foreground.
Select Mozc input mode:
Hold Super and press Space as many times as to select Mozc option.
Or click on:
IBus (at GNOME Status Menu) > Japanese (Mozc).
To read/edit these Japanese key bindings, click on:
IBus (at GNOME Status Menu) > Tools > Properties.
After Mozc Setting window popped up, click on:
General tab > Keymap section (at bottom) > Keymap Style customize button (first one).
After Mozc keymap editor window popped up, click on:
Scroll up and down to memorize and edit the Japanese keymap (bindings).
Probably, you may will toggle between all Mozc's input modes (hiragana, katakana, romaji etc) if you duplicate and edit these binding keys for your chosen shortcuts.
Basically, to switch between syllabaries using MOZC, you need to memorize/edit/press:

hankaku/zenhankaku key: to turn IME on/off.
muhenkan key: to toggle kana syllabaries.
eisu key (or shift+muhenkan keys) to toggle latin input (i.e. romaji).

From MOZC's source-code, see the table with all matches to the Japanese JIS special keys, as bellow:
...
Composition Eisu    ToggleAlphanumericMode
Conversion  Eisu    ToggleAlphanumericMode
DirectInput Eisu    IMEOn
Precomposition  Eisu    ToggleAlphanumericMode
...
Composition Hankaku/Zenkaku IMEOff
Conversion  Hankaku/Zenkaku IMEOff
DirectInput Hankaku/Zenkaku IMEOn
Precomposition  Hankaku/Zenkaku IMEOff
...
Composition Muhenkan    SwitchKanaType
Conversion  Muhenkan    SwitchKanaType
Precomposition  Muhenkan    InputModeSwitchKanaType
...

You can consider to study/test other MOZC keys too, like:
...
DirectInput F13 IMEOn
...
Composition Ctrl i  ConvertToFullKatakana
Conversion  Ctrl i  ConvertToFullKatakana
...
Composition Ctrl o  ConvertToHalfWidth
Conversion  Ctrl o  ConvertToHalfWidth
Composition Ctrl p  ConvertToFullAlphanumeric
Conversion  Ctrl p  ConvertToFullAlphanumeric
...
Composition Ctrl t  ConvertToHalfAlphanumeric
Conversion  Ctrl t  ConvertToHalfAlphanumeric
Composition Ctrl u  ConvertToHiragana
Conversion  Ctrl u  ConvertToHiragana
...
Composition F10 ConvertToHalfAlphanumeric
Conversion  F10 ConvertToHalfAlphanumeric
DirectInput F13 IMEOn
Composition F2  ConvertWithoutHistory
Composition F6  ConvertToHiragana
Conversion  F6  ConvertToHiragana
Composition F7  ConvertToFullKatakana
Conversion  F7  ConvertToFullKatakana
Composition F8  ConvertToHalfWidth
Conversion  F8  ConvertToHalfWidth
Composition F9  ConvertToFullAlphanumeric
Conversion  F9  ConvertToFullAlphanumeric
...
Composition Henkan  Convert
Conversion  Henkan  ConvertNext
DirectInput Henkan  Reconvert
Precomposition  Henkan  Reconvert
...
Composition Hiragana    InputModeHiragana
Conversion  Hiragana    InputModeHiragana
DirectInput Hiragana    IMEOn
Precomposition  Hiragana    InputModeHiragana
...
Composition Katakana    InputModeFullKatakana
Conversion  Katakana    InputModeFullKatakana
DirectInput Katakana    IMEOn
Precomposition  Katakana    InputModeFullKatakana
...
Composition Shift Muhenkan  ConvertToFullAlphanumeric
Conversion  Shift Muhenkan  ConvertToFullAlphanumeric
Precomposition  Shift Muhenkan  ToggleAlphanumericMode
...
Composition Kanji   IMEOff
Composition OFF IMEOff
Composition ON  IMEOn
Conversion  Kanji   IMEOff
Conversion  OFF IMEOff
Conversion  ON  IMEOn
DirectInput Kanji   IMEOn
DirectInput ON  IMEOn
Precomposition  ASCII   InsertCharacter
Precomposition  Kanji   IMEOff
Precomposition  OFF IMEOff
Precomposition  ON  IMEOn
...

So, we need to create new shortcuts similar with these, like bellow (these are my shortcut sugestions):
...
Composition Ctrl j  IMEOff
Conversion  Ctrl j  IMEOff
DirectInput Ctrl j  IMEOn
Precomposition  Ctrl j  IMEOff
Composition Ctrl b  SwitchKanaType
Conversion  Ctrl b  SwitchKanaType
Composition Ctrl y  ToggleAlphanumericMode
Conversion  Ctrl y  ToggleAlphanumericMode
DirectInput Ctrl y  IMEOn
Precomposition  Ctrl y  ToggleAlphanumericMode
...

If you are interested, you can read MOZC's romaji-hiragana conversion table.

If you mess the things, click on reset to defauts button at Mozc setting window (opened in Step 3).

If you edit these shortcuts, please consider conflicts with your existing shortcuts from:

Operating system shortcuts (Ubuntu).
Graphical shell shortcuts (Gnome, KDE).
App shortcuts (firefox, gedit, libreoffice, gimp).
Personalized shortcuts (your personal shortcuts).

With these key bindings you can type very well in a non-japanese keyboard.
We didn't binding the others japanese keys to let you study the subject.
Alternative solutions
Similar softwares
Im using IBus to be my input method editor (IME).
But you can switch to other IMF/IME if you desire.
Others IMEs are:

Anthy: sudo apt install ibus-anthy.
KKC: sudo apt install ibus-kkc.
SKK: sudo apt install ibus-skk.

The same as to input method framework (IMF), like:

Fcitx: sudo apt install fcitx.

and you need to change the IME when installing like:

sudo apt install fcitx-mozc.
sudo apt install fictx-kkc.
sudo apt install fictx-skk.

A list of IMF can be found List of input methods for Unix platforms and Linux input method framework brief summary.
Edit keymap file by a text editor
You can manage the keymap saving, editing, import/export and so on.
To do that, read the file at source-code.
If you wanna, you can download this file and edit it to be imported into your MOZC software.
So, to import/export the keymap file:

At GNOME Status Menu, select MOZC input method.
Again at GNOME Status Menu, select Tools > Properties.
After Mozc Setting window popped up, click on:
General tab > Keymap section (at bottom) > Keymap Style customize button (first one).
And after Mozc keymap editor window popped up, click on:
Edit button menu (at bottom) > click import from file... or export from file....
With that you can save (export) your keymap editions.
And you can to insert a new keymap edited by importing it.

That's all!
References
You may be interested in read this MOZC issue about how to switch between MOZC j-sylabaries.
A good answer about MOZC inputs can be found here.
A brief about MOZC input at askubuntu.
A lot of questions commented about MOZC and input method.
Answers to start MOZC in Hiragana mode.

I'm using Ubuntu 16.04. If you click on the orange あ　in the top corner you can go down to 'text entry' settings. Here it tells you how to switch between them by just using the keyboard. On my version it says Command + Space allows you to switch between English and Japanese without having to point and click. It works like a charm on mine.


Traditional search-as-you-type on newer Nautilus versions Until now I was using a "traditional" version of Nautilus: that that comes with Ubuntu 10.10. Now I'm using 3.6.3, included with Ubuntu 13.04 (most likely any recent version is equivalent for the scope of my question, anyway).

One major difference between the two is the search-as-you-type behavior: in classic versions of Nautilus, when you typed an input, the file with the closest alphabetical match would become the selected one, the eligible files/folders being restricted to the current directory.

The new behavior is to perform an optionally-global search instead.

Can one configure Nautilus to provide the previous functionality ?

Ubuntu 17.10 and later

As the type-ahead search was a Ubuntu-specific patch, it got dropped together with Unity in 17.10. However there is a package called nautilus-typeahead in the Arch repository. Someone took it, compiled for Ubuntu and made a PPA. You can install it by these three commands:

sudo add-apt-repository ppa:lubomir-brindza/nautilus-typeahead
sudo apt dist-upgrade
nautilus -r

There is an issue on Launchpad about bringing this behavior back to official Ubuntu.

Ubuntu 14.04 to 17.04

Since the Ubuntu 14.04 LTS release type-ahead-find was the default behaviour in Nautilus again.

You can use a dconf key to switch between the different search modes:

enable type-ahead-find:

gsettings set org.gnome.nautilus.preferences enable-interactive-search true
disable type-ahead-find in favor of recursive search:

gsettings set org.gnome.nautilus.preferences enable-interactive-search false

Ubuntu 13.04 and 13.10

Nautilus 3.6.X cuts many features from the 3.4 and older versions. Canonical decided to keep using nautilus 3.4.2 in Ubuntu 12.10 because if this even though Nautilus 3.6 was already released. I don't think it is possible to get the old search behaviour in 3.6 but what I did was to install the SolusOS patched Nautilus (also works for Ubuntu 13.04) which includes all the features from 3.4.2 (it really is Nautilus 3.4.2) while maintaining the Nautilus 3.6 skin. I've tested this particular package and it works fine in Ubuntu 12.10 and 13.04.

Alternatively you could install the Nemo File Explorer which is a fork of Nautilus 3.4 that was made due to the Cinnamon dev team being disappointed with Nautilus 3.6, you can get the install instructions here.

Making it your default file browser is a bit more tricky, this blog post worked for me in Ubuntu 12.10 but some users reported the method not to work properly.

There are alternative methods however. See the following question:

Make nemo the default file browser

The answer for Nautilus 3.25 and above is it's gone & not coming back unless someone totally rewrites the ubuntu patch & odds of that are extremely slim to none.

It is not something that can be configured in nautilus itself.


TouchScreen recognized, but not working in 13.04 First, let me mention that one of the first things I tested was the fact that the touchscreen was operating during the GUI installation process.  Now that we've established that...

After full installation, my touchscreen no longer works at all.  I have a Lenovo IdeaPad P400 Touch.

Is there a generic-type driver loaded during the GUI install that gets overwritten after updates/installation possibly?  I'm not sure why it sees the device properly (and apparently shows all proper 'statuses' of the device properties), but doesn't work in any way.

Here's what I'm sure you're going to ask to see, and if I can offer any more details at all, please let me know:

xinput list
===========
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎜   ↳ SYNAPTICS Synaptics Large Touch Screen    id=14   [slave  pointer  (2)]
⎜   ↳ Logitech USB Optical Mouse                id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Lenovo EasyCamera                         id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=13   [slave  keyboard (3)]

xinput list-props 14
====================
Device 'SYNAPTICS Synaptics Large Touch Screen':
    Device Enabled (133):   1
    Coordinate Transformation Matrix (135): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (261): 0
    Device Accel Constant Deceleration (262):   1.000000
    Device Accel Adaptive Deceleration (263):   1.000000
    Device Accel Velocity Scaling (264):    10.000000
    Device Product ID (250):    1739, 7440
    Device Node (251):  "/dev/input/event12"
    Evdev Axis Inversion (265): 0, 0
    Evdev Axis Calibration (266):   0, 3132, 0, 1777
    Evdev Axes Swap (267):  0
    Axis Labels (268):  "Abs MT Position X" (331), "Abs MT Position Y" (332), "None" (0), "None" (0)
    Button Labels (269):    "Button Unknown" (253), "Button Unknown" (253), "Button Unknown" (253), "Button Wheel Up" (139), "Button Wheel Down" (140)
    Evdev Middle Button Emulation (270):    0
    Evdev Middle Button Timeout (271):  50
    Evdev Third Button Emulation (272): 0
    Evdev Third Button Emulation Timeout (273): 1000
    Evdev Third Button Emulation Button (274):  3
    Evdev Third Button Emulation Threshold (275):   20
    Evdev Wheel Emulation (276):    0
    Evdev Wheel Emulation Axes (277):   0, 0, 4, 5
    Evdev Wheel Emulation Inertia (278):    10
    Evdev Wheel Emulation Timeout (279):    200
    Evdev Wheel Emulation Button (280): 4
    Evdev Drag Lock Buttons (281):  0

EDIT (13/05/14): I've definitely discovered that if I, at any point, put my system into any sort of suspension mode ("Suspend" the system), and then awaken it, the touchscreen will begin to work, whereas it was not functioning at all after a cold boot start earlier in the day.

This, in my opinion, appears to point to some of the power functionality causing the problem, as if the drivers need to make a 'call' to wake the device, despite having just been booted fresh.

EDIT (13/05/16): I've submitted a bug report here:

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1180881

You can fix the KVM error by going into BIOS by pressing the recovery button and enable Intel Virtualization option. I have the same touchscreen and I found out that it takes over 10 seconds for touchscreen to load. Try shut the lid for while and reopen and in my case it works. We need to find a way to make the module wait longer before reporting TIMEOUT. Will look more into this issue.

EDIT by OP: It appears that your recommendation about 'shutting the lid' was really just suspending the system.  That immediately activates my touchscreen every time.  Try just using 'Suspend' from the Power menu if you have that option enabled, and see if yours behaves similarly?

Doesn't give us a definitive answer, but I can use LaunchPad to report the bug, and mark your solution as at least a temporary workaround.  Note:  I had 'lid close' set to shutdown, so I would never have seen this work on my system.

That is funny, I have installed F18, Ubuntu 13.04 and Kubuntu, and it has some quirky default that no one can figure out.  I have the same P400,and I like it, but there is a bunch of bugs with this laptop that I don´t like. Yes, I found that sometimes when I logged out and then back in that it would activate, and why or why not is the million dollar question.


How can I uninstall Unity-2D I want to completely remove Unity-2D (not Unity) on Ubuntu Precise Pangolin 12.04. I used dpkg -l | grep unity-2d to list the packages which belongs to Unity-2D. The result was this:

 ii  libunity-2d-private0    5.12.0-0ubuntu1.1    Unity 2D shared library
 ii  unity-2d                5.12.0-0ubuntu1.1    Unity interface for non-accelerated graphics cards
 ii  unity-2d-common         5.12.0-0ubuntu1.1    Unity 2D Panel
 ii  unity-2d-shell          5.12.0-0ubuntu1.1    Dash and Launcher for the Unity 2D environment
 ii  unity-2d-spread         5.12.0-0ubuntu1.1    Unity 2D Spread

Now I want to remove those packages with:

 sudo apt-get purge unity-2d unity-2d-common unity-2d-panel unity-2d-shell unity-2d-spread libunity-2d-private0

Then I get a the following message:

The following packages will be REMOVED:
  libunity-2d-private0* ubuntu-desktop* unity-2d* unity-2d-common* unity-2d-panel* unity-2d-shell* unity-2d-spread*

which means that the package ubuntu-desktop should also removed. But the decription from that package apt-cache show ubuntu-desktop says:

Description-en: The Ubuntu desktop system
 This package depends on all of the packages in the Ubuntu desktop system
 .
 It is also used to help ensure proper upgrades, so it is recommended that
 it not be removed.

that it should not be removed, because it is needed to ensure a successful system-update.

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

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

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

For the specific query:

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

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

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

Remove or modify the file /usr/share/xsessions/ubuntu-2d.desktop. For example, do

sudo mv /usr/share/xsessions/ubuntu-2d.desktop /root/ubuntu-2d.desktop.backup

Unfortunately, you cannot selectively remove the 2D libraries from the system without breaking the dependencies, because the authors of Ubuntu decided that 2D is mandatory for Ubuntu.

EDIT: If you want to remove Unity-2D (but only Unity-2D, not anything else), there are two strategies:

Go with loosing Unity-Desktop. This will not remove the other unity libraries, as Unity-Desktop is just a meta-package, it's purpose is to depend on a large number of other packages such that by installing this single package, you also install all these dependencies.
(much, much harder) Create a dummy meta-package that provides the Unity-2D package, but does not install any files.


Setup a service that auto-magically deletes specific files from a folder I have a folder that connects to a hardware weather logger. The data is pretty huge, and I only wish to keep the last 5 hours worth of data. This folder; however, has also some config files such as myconfig.ini.

How can I set up an automatic service that automatically deletes all files in a folder save for a few?

Would adding a find command to cron work for you?

find /path/ -type f -mtime +5 -name '*.log'

You can layer on extra things to find just the files you want. -mtype is the date-limiting portion which finds files last modified over 5 days ago. You can change this to just look at creation or even access times (if you're not using noatime on your fs)

When you're getting the right files, just stick -exec rm {} \; on the end. You could use -delete but that will crumble if you have too many files being deleted at once. Only do this once you're sure!

When you want to schedule it, su into the right user account (the person who owns the files) and then run crontab -e. You can then write out the command and when you exit, it'll run at the schedule you set. You can read more about cron here:

https://help.ubuntu.com/community/CronHowto

Taking a slightly different tack: why not set up a 5hr frequency job to rename the current collection directory and create a new current collection directory? You could manually or automatically process/archive/delete the individual 5hr directories.


Installing Ubuntu 14.04 alongside Windows 8.1 I'm attempting to install Ubuntu 14.04 alongside Windows 8.1. I had Ubuntu 12.04 installed with Windows 8.1 before, but it became corrupted so I decided to do a complete uninstall/reinstall with 14.04.

I'm booting from a USB stick that contains 14.04. It boots successfully to the USB stick, and I'm able to get to the installation screen for Ubuntu. I click on "Install Ubuntu", and connect to the Internet successfully. I meet all the requirements by the installer (enough hard drive space to install, connected to the internet, laptop is plugged in), so I click next to start installing. I select "Install Ubuntu alongside Windows", and click next. Then my laptop reboots and boots into Windows 8.1. There is no evidence that Ubuntu was installed.

I've tried it multiple times and every time it reboots at that step and automatically goes to Windows. I've also tried to quickly enter the boot order menu when it does reboot and boot again from my USB stick (also does not work). I don't have a blank CD at hand to make a boot CD/DVD, so I have to try and make my USB stick work.

Has anybody else experienced this problem? Any ideas on a solution?

Have you backed up your data from the Windows system? Please do so before proceeding.

I manually repartitioned from the LiveUSB using Gparted first, and mine installed AOK.

Boot with the Ubuntu LiveUSB, and then launch Gparted from the System menu.*

Select and resize the Win8 NTFS partition, reducing it by at least 10GB. More is fine.

Create a new EXT4 (or whichever filesystem type you prefer) partition, leaving space for the swap file; the swap file should be sized equal to the chip memory, the RAM in your system.

Create a new swap partition as the last partition.

Click on the green check mark, confirm you want to make changes, and go make a hot beverage. Return later and the partitioning will be done. Then, proceed with the install from the LiveUSB.

-

*If Gparted is not installed, open a terminal window and do

sudo apt-get install gparted

Ditch the usb and use Unetbootin to mount the iso directly to the C:/ drive.

Then be sure to install Ubuntu to the master boot record.

You may need to manually configure Ubuntu to boot windows after this.

There are a lot of community resources on this topic.


Run wine command from python I have Apache that serves a web service with a python script. I trie to execute a WINE command from python, but nothing happens...

command1 = 'dir > test.txt'
command2 = 'wine someexecutable.exe inputfile outpufile'
p = subprocess.call(command1, shell=True)
p = subprocess.call(command2, shell=True)

The command1 is normally executed, and I get a test.txt file. It seems that command2 is not executed at all... If I execute it manually from the shell with www-data user, the command2 exectues and I get the output file -> not a permission problem. Is there something to configure to allow python to execute wine commands ?

The syntax is generally correct but you need to give Wine a more explicit path to your executable. You can see what is going on in the return error:

>>> subprocess.call("wine someexecutable.exe inputfile outpufile", shell=True)
wine: cannot find L"C:\\windows\\system32\\someexecutable.exe"

Try this:

import commands

command1 = 'dir > test.txt'
command2 = 'wine someexecutable.exe inputfile outpufile'

cmd1 = commands.getoutput(command1)
cmd2 = commands.getoutput(command2)

Note: sometimes OS pipe buffer might get filled with output being redirected to a pipe, thus try commands module instead of subprocess for this task!


Bash: changing file extentions of all files in a directory and copying odd lines How would one go about taking all the *.txt files in a given folder (users input) and copying odd lines to files with identical names but different extension (bat/html or anything else)

I assume cp or mv wont work, something like sed should do the trick for lines, but im having a hard time incorporating everything together.

If anyone could help me piece this together I would be very thankful

#!/bin/bash
clear

#seems like a good idea to get a full path to the directory im gonna be working in, not #sure how to go about it though.

path=pwd

#getting users input

read Directory

#check if said directory exists
if[ -d $Directory]; then
#if it does
#all files with .txt extention are to be copied
for *.txt in $(ls)
do
mv *.txt *.bat

#aaand now im lost, didnt have a chance to even test this, since i have linux only in #my studying enviroment (uni), will get on my personal PC later on
#something like sed could/should work in there, but i have no idea how to go about it

#if doesnt
else
echo "Directory does not exist or you do not have a permission to alter its contents"

#!/bin/sh
cd "$1" || { echo "Couldn't cd to directory $1.  Quitting." ; exit 1 ; }
for fname in *.txt
do
    awk 'NR % 2 == 1 { print; }' "$fname" >"${fname%.txt}.bat"
done

Put the above in a file and make the file executable (chmod +x yourfilename).  Now, run this command with the directory that you want to operate on as the first argument.

The script changes to the directory you request (cd "$1").  If that fails (the directory doesn't exist), then the script exits with an error message.  If cd "$1" succeeds, then the script goes through each .txt file in the directory, selects the odd lines (NR % 2 == 1) and writes them to a file with same name except with extension ".bat".

Thank you to all that have replied, you have helped me greatly in gaining some understanding of bash scripting, now that this question is resolved, how would one go about closing a question?

I used script provided by John1024, worked flawlessly. Very thanful for that. Cheers

!/bin/sh

cd "$1" || { echo "Couldn't cd to directory $1.  Quitting." ; exit 1 ; }
for fname in *.txt
do
    awk 'NR % 2 == 1 { print; }' "$fname" >"${fname%.txt}.bat"
done


How to disable gtk-theme in covergloobus? I installed covergloobus in Ubuntu 11.04 Natty Narwhal. But when I start covergloobus. It is handled like an opened appliciation.

There is still a titlebar. How can I disable the gtk-theme ?

Install CompizConfig
SettingsManager

sudo apt-get install compizconfig-settings-manager
Launch it by searching from the dash
in Unity, or Preferences >
CompizConfig Settings Manager in
Ubuntu Classic.
Navigate to the Window Decoration
tab.

Add a new rule to Decoration
Windows.

Enter the value Covergloobus.py,
and tick the Invert box.

Click Add.

The covergloobus 1.7 installed from a .deb file.


How copy totally folders between disk I used this command to copy all directory to another disk:

cp -r -v path_folder_source path_folder_destination

The transfer ran alright - I mean I don't know if resulted any error, because I logged of the session tmux before the see all result of this command - but when I went compare a both folder a I saw different results:

folder_source: 120,3 GB with 122534 items
folder_destination: 118,7 GB with 122511 items

My questions is:

I did this with command correctly?
Why has difference between folder, supposedly equal?

In short - you just should run the sync command by the unprivileged user:

$ sudo sync

as root:

# sync

for longer answer visit the other stack.


Ubuntu 13.04 ram and CPU maximum support? I'm learning about ubuntu, but I do not know the ubuntu 13.04 Ram and CPU support up to how much??? hope you help me

As far as maximum CPU support, I don't think it exists, but there might be a limit on the number of CPU's it can handle.

If you have more than 3 GB RAM in your computer, you don't have to pick 64-bit Ubuntu for making full use of your RAM.  The 32-bit Ubuntu automatically installs a PAE kernel. The kernel is the core of the operating system. A PAE kernel can address up to 64 GB of RAM.

A PAE 32-bit kernel therefore isn't bothered by the 32-bit memory hole, which plagues old-fashioned 32-bit kernels.

The kernel used by the 32-bit Ubuntu can recognize up to 4GB of memory, although the amount of usable memory available to the user is slightly less than this. A kernel recompiled with PAE enabled can use up to 64GB of physical memory.

The kernel used by 64-bit Ubuntu can theoretically recognize up to 17.2 billion GB of physical memory, but this is subject in practice to hardware limitations. Current AMD64 implementations allow for up to 256TB of physical memory. Current Intel 64 implementations allow for up to 1TB of physical memory.

Of course, you have to have a 64-bit architecture to use a 64-bit OS. But even if you don't have a 64-bit architecture, Linux can take advantage of your memory if you don't mind compiling your own kernel.

Just to give an idea, I'm running Ubuntu 13.04 32bit on a machine with Core2Duo CPU, and 4GB RAM, and if you just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo dmidecode -t 16

it will show you the maximum amount of RAM that it can handle. (system Specific)

The maximum CPU limit under Linux is 4000. The system will run with more than 4000 but, this will not guarantee the performance...yet.


How to enable unused swap disk? After some months of use I've found out that my system has no swap memory available. I urgently need it in order to build some huge software projects.

cat /proc/meminfo prints the following:

SwapTotal:             0 kB
SwapFree:              0 kB

I have no swap. My laptop contains a SSD that was supposed to be only used as a fast swap memory.

sudo fdisk -l prints the following:

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048    39090175    19544064   82  Linux swap / Solaris

As you can see the entire hard disk is marked as a Linux swap system. But why does my system not make use of it? How can I change it?

edit:

Maybe these information will help you:

cat /etc/fstab prints the following:

UUID=1274ce52-7618-40fe-9110-9778774b4d52 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb1 during installation
#UUID=9738bde1-2e39-44a5-8c91-4d0651fb0612 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

sudo blkid prints the following:

/dev/sda1: UUID="1274ce52-7618-40fe-9110-9778774b4d52" TYPE="ext4"
/dev/sda2: LABEL="System-reserviert" UUID="2A246EAF246E7E27" TYPE="ntfs"
/dev/sda3: UUID="64C0725CC0723480" TYPE="ntfs"
/dev/sda4: UUID="809C89129C89043E" TYPE="ntfs"

check the swappiness value by :

cat /proc/sys/vm/swappiness

and edit or add if it does not exist

in /etc/sysctl.conf
vm.swappiness=40

than reboot.


Unable to install php5-mcrypt on Ubuntu 14.04 I can't install php5-mcrypt on ubuntu 14.04. I'm doing this:

$ sudo apt-get install php5-mcrypt

And getting this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-mcrypt

php5-mcrypt is located in the universe repository.

Open Dash, go to Software and Updates and be sure to check the universe repository (Free and opensource software maintained by community).

OR

Run the below command on terminal to enable universe repository,

sudo add-apt-repository universe

Then:

sudo apt-get update
sudo apt-get install php5-mcrypt

Should work.

add-apt-repository on Ubuntu 12.10 apparently comes from this one:
    $ apt-get install software-properties-common
After that, and another apt-get update I could find php5-mcrypt


why is there no /proc/bus/usb? I have an old Thinkpad R32 2658 and I want to use dfu-util. The reference documentation starts with the following description:

  To run dfu-util, you need to have /proc/bus/usb mounted and working. The terminal command "ls /proc/bus/usb" should return something similar to, "001 002 003 004 005 devices", it shouldn't be empty. If it is empty, use this command:
  sudo mount -t usbfs usbfs /proc/bus/usb

The problem is: I don't have /proc/bus/usb at all. In /proc/bus there are only input and pci sub-directories. But I do have USB ports on my old notebook and my USB keys work well.

What can I do?

Not strictly a solution but a workaround that worked for the author of the question is available in this forum entry.

Please note, the author of the answer above states that this is not a long-term solution.

In 12.04 (and perhaps before), /usb/bin/usb-devices is a script that provides similar info.


pentium t2390 dual core 3gb ram just installed 12.04, should I change to 14.04? had a 12.04 disk and installed on a vista laptop for a friend, did not realize till install that 14.04LTS was available. should I burn a disk and reinstall 14.04, upgrade or stick with 12.04?

I agree if it's not broke don't fix it since that release has 5 years support. If there is a feature on 14.04 that is being eyeballed or just want most up to date then do the following command after making a backup if feels necessary even.

sudo update-manager -d

No need to burn a disk, if you want to upgrade.

sudo apt-get update
sudo apt-get upgrade

or:

sudo apt-get && sudo apt-get upgrade

updates and upgrade option will be available system setting if you don't want to go through the terminal.

or:

 sudo do-release-upgrade

if you do.


First time ubuntu Intel GMA3150 on NB30 Plus I have intel atom N450 and intel GMA3150 when looking in system info it says unknown for the GPU and youtube videos above 360p laag very bad compared to windows xp 720p was smooth.

I don't know much about Linux this is like the first step I have taken to try and use Linux rather than Windows. Please can some one help me out and explain what I have to do.

~$ lspci -nnk | grep -A2 VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation N10 Family Integrated Graphics Controller [8086:a011]
Subsystem: Samsung Electronics Co Ltd Device [144d:c073]
    Kernel driver in use: i915

Type

sudo apt-get install mesa-utils

in the terminal and then check system info and youtube (to test 720p) everything will be hunky doory.

If you run glxinfo in terminal you should see you have direct rendering.

Hi and welcome to AskUbuntu!

The System Info shows pretty much anything as unknown, no matter what hardware is used. To verify that your hardware is properly recognized, run the following is terminal (ctrl+alt+t):

lspci -nnk | grep -A2 VGA

The output should show both the hardware and the driver in use.
For a more user friendly way, install 'Hardinfo' from the repositories.

Both Adobe Flash and Intel's GMA3150 perform very badly on Linux when compared to Windows. There are several alternatives for Adobe Flash, mostly for youtube, not sure they'd suite your needs.

For example, Minitube ..., or whatever it's called now.

Another alternative is a Firefox extension called FlashVideoReplacer.


How do I run .sh scripts? Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal.

How do I open this file in the terminal?

Give execute permission to your script:

chmod +x /path/to/yourscript.sh

And to run your script:

/path/to/yourscript.sh

Since . refers to the current directory: if yourscript.sh is in the current directory, you can simplify this to:

./yourscript.sh

You can also use . tricks, with the suggestion of other answers.

For example:

chmod +x filename.sh, assuming you have already gone to the path to file then run the file with any one of these command:

sh filename.sh

./filename.sh

. filename.sh


SMBus/ BIOS error while booting Ubuntu in VirtualBox I am trying to boot Ubuntu 13.04 in VirtualBox, but every time I boot, I get an error that says:

SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr

This happens right after I start the virtual machine, and the operating system does not even start properly. I see the error, then the screen just goes black and gives me a blinking cursor. The solutions I have found online tell me to open up a terminal only after the OS boots correctly. Sadly, I cannot even get to that stage, so I can't use that solution.

Help?

By the way, I am VERY new to Virtual Box and creating virtual machines, so excuse me if I'm not familiar with some of the terminology. Another thing, if it helps, is that I'm running Windows 7 as my host OS.

Turn off the option "Enable Nested Paging" in the VirtualBox configuration under Settings->System->Acceleration.

This allowed me to get Ubuntu running with the desktop.

I am loading a virtual Ubuntu 14.04 onto a virtual Mint 17.1.

The error was the same however I just continued to boot until it booted up. We're talking about a host to guest in which becomes the host to another guest. Don't get concerned about errors, just simply get back up and start "walking" again.


Unable to install "": snap "" has "install-snap" change in progress I just finished the installation of the Ubuntu 18.04, but whenever I try to install any application from Ubuntu Software the same error occurs (for example "vlc"):

  unable to install "vlc": snap "vlc" has "install-snap" change in progress

I hope somebody can tell me what I've done wrong.

Snap is probably still working on something in the background (or at least it thinks so). Open a terminal and run snap changes so see a list of ongoing changes.
$ snap changes
...
123  Doing   2018-04-28T10:40:11Z  -  Install "foo" snap
...

You can abort ongoing change(s):
sudo snap abort 123

Then you should be able to successfully install VLC through the software center, or through the command line using snap install vlc.

In my case, you do not have to do anything, just wait until the application is getting installed. The installation process is not shown (I am not sure if it is some kind of a bug or feature) and it does the installation completely. Just sit tight and wait for it to get installed. It has happened and worked properly several times for me. Hope it works for others.


Easy to use and easy to install app needed as a replacement of Autocad LT In our office we use Windows 8.1 mostly and some 7. W7s are OK but 8.1s are not yet bought. Let's say we are "trying" them.

I have convinced the buying department to use Ubuntu since they are only using basic functions of Word and Excel and Outlook. They are very much happier with Writer, Calc and Thunderbird.

However, we do very much basic drawing of electrical units, lines, cameras, lambs etc. Using Autocad for this is really overkill. So no one wants to pay for it (it is still wrong though). So they accepted me looking for totally legal and equally usefull alternatives.

I have tried BricsCAD and DraftSight so far with no success.. In Turkey Linux is very little known, so is methods of installing apps on it. They are so used to click on an exe and "next" a few times.. In my unsuccessfull demonstration of installing both apps in 64bit Ubuntu 12.04LTS (and 13.10) they failed and I could not make them work no matter what.

We can not use FreeCAD and LibreCAD since they only work with DXF format and arcitects are sending us the files in DWG format.

Interestingly, they work pretty well when I try them on a Windows environment. But no success on Ubuntu, so this makes them think Ubuntu is not ready as a daily driver.

So basicly, I need to convince them to switch to a Ubuntu system with an easily install-able CAD program which gives us very basic 2D functions like making lines, polylines and stretching them, working with layers, locking layers, making and editing blocks (shaped like bulbs, fuses,..), moving, copying etc..

Could you advise me some solutions? Easy to be installed and similar to Autocad interface if possible. So I can convince everybody. They do NOT have to be free since they will anyway be very much cheaper than a Windows 8.1 + antivirus + Office + AutoCAD system :)

VariCAD - 3D / 2D CAD software for mechanical engineering

VariCAD is compact, fast, easy to use, and provides everything necessary for mechanical design. VariCAD is sold "fully loaded", including all features and functions, for one affordable price. The system contains:

3D Modeling
2D Drawing and Editing
Optional Support of Parameters
Optional Support of Geometrical Constraints
Shells Modeling, Pipelines, Wires
Crash Tests (Interferences)
3D Assemblies and Groups
Surface Development (Sheet Metal Unbending)
Mechanical Part Libraries and Symbol Libraries
Calculations of 3D Objects or 2D Sections
BOM and Title Blocks

Learn more about: https://www.varicad.com/en/home/products/description/

If you can't use Bricscad in your linux, you should really change your linux. Because Bricscad is the BEST native CAD in linux. By far.Second best is ARES Commnader and CorelCAD. Third best is DraftSight.


VirtualBox does not show full screen I have Ubuntu 10.04 OS and a virtualbox (not the OSE) with windows XP as a guest.

When I choose Full screen in virtualbox the operating system (my guest, windows XP) is still in small screen.

I installed the guest additions. However, if I go to Devices on the Menu, it still shows "Install guest additions" like they were not installed. I can only choose 800x600 and 600x480 resolutions.

I'm using VB 3.2.8.

These are my settings:

General
Name: windowsxp
OS Type: Windows XP

System
Base Memory: 512 MB
Processor(s): 1
Boot Order: CD/DVD-ROM, Hard Disk

Display
Video Memory: 24 MB
3D Acceleration: Enabled
2D Video Acceleration: Enabled
Remote Display Server: Disabled

Storage
IDE Controller
  IDE Primary Master: windowsxp.vdi (Normal, 10.00 GB)
  IDE Secondary Master (CD/DVD): VBoxGuestAdditions.iso (32.01 MB)
Floppy Controller
  Floppy Device 0:Empty

Audio
Host Driver: PulseAudio
Controller: ICH AC97

Network
Adapter 1: PCnet-FAST III (NAT)

Serial Ports Port 1: COM1, Disconnected

It looks like windows XP is using the VitrualBox Graphics Driver (Device manager > Display adapters : VirtualBox Graphics driver) It just doesn't show in full screen mode..

Gues additions seem to been installed correctly.

Can you give your graphic card 32 Mb of memory. It's the only difference that I see with my setup that does work correctly in fullscreen or seamless.

How to check if video guest additions are installed

Looks like guest additions have not been correctly installed. Check that windows is using Virtualbox Graphics Adapter as it's display driver. If it isn't try to reinstall the guest additions and report back any problem that it displays.

You can check it using the Device Manager on windows. If you are using XP, you can reach it this way:

To open Device Manager, click Start, and then click Control Panel. Click Performance and Maintenance, and then click System. On the Hardware tab, click Device Manager.

Other windows version have it placed in another places, but it's always there ;).

The install guest additions doesn't change after install.

As for your resolution, have you tried installing all drivers that would normally be needed for your system?  Im not sure how virtualbox works exactly, but im guessing it 'clones' the host system...


why am i unable to dual boot windows 10 with ubuntu 18.04? I have been struggling to dual boot Windows 10 with Ubuntu 18.04. I have Windows 10 already installed with all the latest updates as of 21st July 2018. The problem that I am facing is that when I boot Ubuntu from the USB drive, I am asked to install Ubuntu. When I choose that option, while proceeding I see that there is no option to install Ubuntu alongside Windows.

Only option to erase the disk and other options are available. I looked up in the Internet and found similar problem for Dell XPS model but in that question dual booting was being done with Ubuntu 16.04. In that post it was advised to enable ahci in sata controller option in BIOS mode and to disable fast boot mode. I have done all those things but still option to install Ubuntu alongside Windows is not showing.

What I am trying to say that above option is not showing but all the rest options from second onwards is showing. The laptop that I am using is Lenovo g5080. I have Windows 10 (64bit) already installed and I don't want my data to be erased. Why am I unable to dual boot Windows 10 with Ubuntu 18.04?

disk management system

I am also adding screenshots from Ubuntu installation pages. I don't see "install Ubuntu along with Windows" option as shown below :

and partitions in Ubuntu. the free space is what I intend to use for Ubuntu installation

I had a similar issue trying to install Ubuntu 18.04 alongside Windows 10: the Ubuntu installation page did miss the "Install Ubuntu alongside Windows 10" option.

In my case, the cause of the missing option was:

my Windows 10 is set up in BIOS / CSM mode (WIN+R -> msinfo32 -> open System Information -> right pane: BIOS Mode shows Legacy), presumably because I had upgraded from Win7
in my Mainboard BIOS / Firmware setup, UEFI is not disabled (only "UEFI" or "UEFI+Legacy" options are available, I have set this to "UEFI+Legacy")
to install Ubuntu, I had booted an out-of-the-box Ubuntu 18.04 USB stick which (by default) has both GPT/UEFI + MBR/BIOS/LEGACY capabilities, but...
here comes the issue: ... since the Mainboard boot device priority was set to boot UEFI USB drives before booting into BIOS USB drives ...
...as a consequence, the Ubuntu USB stick would always boot into GPT / UEFI mode (you can tell by checking e.g. if the /sys/firmware/efi directory exists, see the various hints on the net)
and thus the Ubuntu installation does not find a Windows 10 boot record (apparently looks only for UEFI... what do the experts say?)

I did fix the issue simply by:

changing the Mainboard boot device priority to boot NON-UEFI devices first (or: you can enter the manual boot menu -> and pick the NON-UEFI USB stick to boot from)
and then boot the Ubuntu USB stick successfully into BIOS / MBR mode (no /sys/firmware/efi directory)
et voila: the "Install Ubuntu alongside Windows 10" option appears, and installing Ubuntu parallel to Win10 automatically yielded the desired boot menu with Ubuntu and Windows10 to choose.

Converting Windows 10 to UEFI mode was therefore not neccessary for me.

Maybe this helps also in your case...

I finally figured out all the problems related to my system and was able to dual boot ubuntu alongside windows 10 without any data loss. In these kind of problems the issue is different for different persons depending upon the hardware and type of firmware they have. I will write down the problems and solutions that i specifically faced for future reference.
So, if anyone encounters similar problems they can check the following:

Check what is the type of your disk in the disk management system in windows. There are two types of them: basic and dynamic. To dual boot as it turns out it should be basic. In my case i had dynamic types originally. To convert it to basic type without any data loss i used aomei dynamic disk converter software. That seems to be the only possible solution in my knowledge.
Although the dual booting can be done in old legacy boot mode but in my case i tried many ways to do that but was unsuccesful all the time. So the better option is to change the boot mode to uefi. That makes it a lot easier and error free. To change the boot mode to uefi first check the partition type of your disk. In my case it was classical MBR as pointed out by @mook765. So to convert the boot mode to uefi first you need to convert the partition system to newer GPT partition system. To do that without data loss i used aomei partition assistant. There is another way also as specified by microsoft in this link
https://docs.microsoft.com/en-us/windows-server/storage/disk-management/change-an-mbr-disk-into-a-gpt-disk

After you have converted the partition system to gpt you can easily convert the boot mode to uefi. To do that just enter the bios setup of your system and in the boot section change your boot mode from "legacy support" to "uefi" and exit after saving the changes.
Now for dual booting the process is very straight forward.the steps are mentioned below:

a. First insert the usb drive having ubuntu iso and then restart your computer pressing and holding shift key until the uefi menu starts up.

b. Uefi menu differs from system to system but there should be an option titled "use a device". There you can locate your usb drive and enter that and installation process can be started.

c. If the "install ubuntu alongside windows boot manager" option shows up you can do that or if you want custom configurations the answer given by @SakoDaemon explains that process pretty well.