It appears that the keyboard Layout Options that allow things such as "Swap the Escape key and Caps Lock" have disappeared from the keyboard settings in 14.04 Is there another GUI where they can be set? Or is it back to dotfiles?
Hamish Downer's questions
I have a somewhat customised laptop install I want to move to a SSD directly, without having to reinstall Ubuntu, reinstall all the apps and make all the other changes again. The SSD is smaller, so I can't just do dd
.
The original install was done with the Ubuntu alternate installer, selecting the full disk encryption with LVM option.
What steps are required and how do I do them? I expect to have to:
- set up the disk partitions, encryption etc
- copy the data across
- install grub and get it working with new UUID values etc.
When I copy files from my camera (connected via USB) to the SSD in my laptop a few files get copied and then the copy stalls. I'm not sure why, any ideas or things to investigate appreciated, or bug reports to go and look at.
I have read this answer - the camera (Canon 40D in case that matters) mounts fine using gvfs. I can see the photos in Nautilus, or in the terminal (in /run/user/username/gvfs/...
) and I can copy a few photos, but not many. Using the terminal or Nautilus the process hangs until the camera goes to sleep. Digikam fails to copy any at all, as does Rapid Photo Downloader. Shotwell did manage it in the end, but that is very much a work around for me.
I have disabled thumbnail generation by nautilus. Load average stays about 1 while this is happening, while CPU usage is half idle, half wait (and a little user/sys for other programs). None of the programs at the top of the cpu list in top
are related to copying photos. There is not much in the logs - from /var/log/syslog
Dec 2 16:20:52 mishtop dbus[945]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Dec 2 16:20:52 mishtop dbus[945]: [system] Successfully activated service 'org.freedesktop.UDisks'
Dec 2 16:21:24 mishtop kernel: [ 2297.180130] usb 2-2: new high-speed USB device number 4 using ehci_hcd
Dec 2 16:21:24 mishtop kernel: [ 2297.314272] usb 2-2: New USB device found, idVendor=04a9, idProduct=3146
Dec 2 16:21:24 mishtop kernel: [ 2297.314278] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 2 16:21:24 mishtop kernel: [ 2297.314283] usb 2-2: Product: Canon Digital Camera
Dec 2 16:21:24 mishtop kernel: [ 2297.314287] usb 2-2: Manufacturer: Canon Inc.
Dec 2 16:21:24 mishtop mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2"
Dec 2 16:21:24 mishtop mtp-probe: bus: 2, device: 4 was not an MTP device
This problem has only started recently and I've had all the hardware for ages. I have also recently upgraded to 12.10, though I'm not sure if the problem started when I upgraded or after the upgrade. I also note this similar question but it is currently unanswered and I'm providing more detail
Quick Version
I have set up a private deb repository and copied some signed deb packages into it. I have installed the signing key locally. However when I try to install from the repo I get this warning:
WARNING: The following packages cannot be authenticated!
When installing manually, I can just press y but I want to install these packages automatically using puppet, and that fails.
So what's the problem? Do I need to resign packages with a key I control? Is there a better way of ensuring I have a particular version of puppet installed?
More Details
I have got the packages from the puppet debian repository - http://apt.puppetlabs.com/ I just copy the package from (for lucid) this directory
The repository is then updated with a script that runs these commands for each repo:
cd /var/www/html/apt/ubuntu/lucid
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
dpkg-scansources sources /dev/null | gzip -9c > sources/Sources.gz
I have installed the signing key on the client.
$ sudo apt-key list
/etc/apt/trusted.gpg
--------------------
...
pub 4096R/4BD6EC30 2010-07-10 [expires: 2016-07-08]
uid Puppet Labs Release Key (Puppet Labs Release Key) <[email protected]>
...
The rationale for doing this is that I want all puppet clients to be the same version. So all machines should get the packages from my repository by using the following pin in /etc/apt/preferences.d/puppet
:
Package: puppet puppet-common facter
Pin: origin deb.example.org
Pin-Priority: 1001
(We are currently using puppet 2.6.x, so I need a priority of 1001 to downgrade precise clients from 2.7.x).
I have read about holding packages but that doesn't help me change package versions.
All suggestions welcome.
I have a thinkpad (x301) with an external monitor connected via a DisplayPort to HDMI cable. I can control the brightness of the laptop monitor using the keys on the laptop, but I can't work out how to control the brightness of the external monitor.
$ ls /sys/class/backlight/*/brightness
/sys/class/backlight/acpi_video0/brightness
/sys/class/backlight/intel_backlight/brightness
$ cat /sys/class/backlight/acpi_video0/brightness
11
$ cat /sys/class/backlight/acpi_video0/max_brightness
15
$ cat /sys/class/backlight/intel_backlight/brightness
501804
$ cat /sys/class/backlight/intel_backlight/max_brightness
2414340
I can write values into the above and both intel_backlight and acpi_video0 changes the brightness of the laptop monitor.
Does the above mean that there is no way to change the brightness of the external monitor (other than the OSD)?
I appear to be suffering from this bug that means my custom keyboard shortcuts are lost on reboot. I have 8 custom shortcuts, and re-setting all 8 via the GUI method for setting keyboard shortcuts is tedious.
I am using 12.10 and Unity. The keyboard shortcuts I want to customise are
- "Shift to workspace left" (right/above/below) - with shortcut CtrlAltl (h/k/j)
- "Move window one workspace to the left" (right/up/down) - with shortcut ShiftCtrlAltl (h/k/j).
(At least those are the names I see in the keyboard shortcut dialogs.)
So until the bug is fixed, I would like to be able to run a script to set all 8 after I have logged in. So what command line program and options do I need to run to set a keyboard shortcut?
Just read this seriously obsessive post about customising keyboards and while I'm not going to do everything there, there are a couple of ideas I'd like to nick. In particular he has set up the Caps Lock key so that:
- when pressed and released alone, it is mapped to Esc
- when pressed and held, and a second key is pressed, it is mapped to Ctrl
As he says, this is great for vim users. Is that possible in Ubuntu?
He also does something similar with the right and left Shift keys. When pressed alone they map to ( and ) but if another key is pressed they act as you expect Shift to work.
When my camera was mounted on /media
I could use the standard tools (df
) to see the disk usage of the card in my camera. However now the camera is mounted using gvfs, and df seems to ignore it. I've also tried pydf and discus to no avail.
The camera is definitely available through nautilus, and when I select the camera in nautlius, the status bar tells me the amount of disk free. I can also open the ~/.gvfs/
folder in nautilus and right click on the camera folder and get the disk usage in a graphical way.
But that is no use for a script. Are there command line tools that are the equivalent of df
for gvfs filesystems? Or even better, a way to make df
report on gvfs filesystems?
I'm a heavy user of firefox profiles - a general one, work and one just for facebook so facebook doesn't know where I'm browsing. I have customised my firefox launcher icon to give me access to profiles by right click.
However what I really want is to hit a key and type "face", hit enter and have the Facebook profile launched. Before Unity I had this by having multiple application launchers and then using gnome do to access them.
So how can I set up the same workflow with Unity? Is there a keyboard centric way to access the right click menu of launcher icons? Do I have to set up multiple launcher icons?
I've upgraded to Ubuntu 12.04 and did it offline using the alternative CD. I didn't look at the "packages to remove" section before clicking next - I've done Ubuntu upgrades many times and assumed it was just the normal set of obsolete library packages etc. But I do tend to watch the terminal text go by and see what it's doing, and I saw it removing a number of packages I wanted. I guess these are packages that aren't on the CD that can't co-exist with the new Ubuntu.
Anyway, I want to find which packages have been removed. So does the update log get saved somewhere?
Then I can start doing some grepping on it and then reinstall the packages I did want.
Running ssh-add
at the command line no longer unlocks the ssh keys properly on my system (Ubuntu 11.10 with Unity). Even after I've run ssh-add, when I ssh to a server, I get a dialog box popping up to ask me for my ssh key passphrase. After that things work as expected.
ssh-agent
is running. When I first log in:
$ ps -ef | grep ssh-agent
mish 1853 1818 0 18:55 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=ubuntu
How can I unlock the ssh key properly without having to ssh to a server? (Manually triggering the ssh key dialog window would be OK as a solution, but I don't know how to do that).
My use case is that I use tmuxinator and want to set up multiple ssh connections. So I want the ssh key unlocked. Otherwise all the ssh key dialog boxes all pop up and I have to enter my passphrase multiple times. Or I can ssh somewhere before launching tmuxinator, but the connection is slow here, so that just adds friction. So I want to unlock the ssh key before launching tmuxinator, without having to ssh somewhere first.
Edit
Just tried logging out and logging back in again. Then I did:
$ env | grep -i ssh
SSH_AGENT_PID=8693
SSH_AUTH_SOCK=/tmp/keyring-Ho4cfE/ssh
$ ssh-add -D
All identities removed.
$ ssh-add -l
1024 b8:12:34:56[...]:19 name@computer (DSA)
$ ssh-add
Enter passphrase for /home/name/.ssh/id_dsa:
Identity added: /home/name/.ssh/id_dsa (/home/mish/.ssh/id_dsa)
$ ssh-add -l
1024 b8:12:34:56[...]:19 /home/name/.ssh/id_dsa (DSA)
1024 b8:12:34:56[...]:19 name@computer (DSA)
0 mish@mishtop:~$ ssh server
At which point I am again asked for my passphrase by the GUI dialog box. Frustrating ...
It's also interesting that after "All identities removed" that ssh-add -l
still shows an identity. That confuses me. And there does only appear to be one ssh-agent running.
Edit 2:
I found a bug on launchpad about this: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
However this question was about finding a workaround rather than asking why it didn't work, so I hope the question can stand.
Edit 3:
Nothing unusual in /etc/ssh/ssh_config
- I haven't touched it. I do have a ~/.ssh/config
but that is just ports and usernames.
I watched what processes were running when the dialog popped up, and it was /usr/lib/gnome-keyring/gnome-keyring-prompt-3
, launched by /usr/bin/gnome-keyring-daemon --daemonize --login
I tried launching the prompt from a terminal but nothing happened. So still stuck.
LightDM is the new login manager, and is meant to be themeable using HTML and CSS. How do I do that in Ubuntu 11.10? Can I use my own HTML file with my own text?
Things I've tried:
- I've spent a little while googling about and found nothing very useful so far, apart from how to change the background image.
- There is a launchpad answer referencing a theme directory but no clue as to what should go in the theme directory. It appears there used to be a
/usr/share/lightdm/themes
directory, but it is not on my system. - I've spent a while looking but haven't found the files the current theme is in - if I could find that I could try copying and adapt it - I've done
dpkg -L
of both the lightdm and unity-greeter packages but not seen any HTML or CSS files. - I have found the LightDM Reference Manual but that appears to be an API reference, not a configuration guide.
- I have tried browsing the LightDM code but can't find any sample HTML/CSS files.
Edit: To clarify I'd like to be able to edit an HTML file so I can add text to the login screen, not just change the fonts and background image. Sorry to @jokerdino who answered an unclear question.
Edit 2: Found a few more clues, but will have to play with them later.
- I have found
/usr/share/lightdm-gtk-greeter/greeter.ui
which is part of the lightdm-gtk-greeter package. It is an XML file that looks a bit like the login screen, but I'm not familiar with how to edit that. - I have also found this sample HTML file which I can look at the source of (provided I don't let it time out - 5 seconds). It's linked to this javascript file which fakes lightdm for the web mockup. So maybe I can try putting a modified version of the HTML file in a directory and call that the theme directory ... But will have to try later - unless someone writes up some working instructions before then - hint, hint.
Ideally I want to hit a key combo and start typing the name of a tag while a dialog box shows a list of matching tags I can select from (a bit like the tag box when you ask a question on this site :). Using a mouse makes it quite a bit slower when working through lots of photos ...
And I am aware that in digikam 2.x I can apply a keyboard shortcut to a single tag, but that doesn't really do what I want. It just applies that tag to the currently selected photos - I can't just type and search in the subfolders.
I've just upgraded to beta 2 of Oneiric/11.10 and the typing break has gone.
I've gone into the system settings and looked in "Keyboard Layout" and "Keyboard" and can't find anything. Has it just been dropped?
Is there some hidden way to re-enable it?
I've seen a number of questions about lenses, and I've picked up enough to work out that it's something to do with the Unity shell in Natty, but I haven't really worked out exactly what is meant by it. So can someone give me (or link to) a good description of what a lens is?
When I watch a DVD in vlc, the typing break will kick in even though I haven't touched the keyboard or mouse for over half an hour. This is a bit annoying ... Does anyone know how to stop this happening?
I'm upgrading my laptop to Maverick (10.10) and I noticed btrfs is an option for the filesystem. I read a while ago that the Ubuntu team weren't sure if it was going to be stable for Maverick. Does anyone know (with references) if it was approved for stable use? Any other pros and cons?
For the moment I've made my root partition ext4 and my home partition btrfs, but I could reinstall. My laptop is a secondary computer.
I have a largish music collection and there are some duplicates in there. Is there any way to find duplicate files. At a minimum by doing a hash and seeing if two files have the same hash.
Bonus points for also finding files with the same name apart from the extension - I think I have some songs with both mp3 and ogg format versions.
I'm happy using the command line if that is the easiest way.
Having just written an answer about moving /usr to a new partition I was wondering about deleting files once a new partition has been mounted. To use the example from the question, is it possible to mount a new partition on /usr
and then delete all the files under /usr
on the root partition to free up space on the root partition.
Does anyone know of a good way to set up some sort of parental controls so that one user account is subject to them, but not another?
A couple of friends of mine use Ubuntu and have kids (7 to 10 years old) who use the family computer. They'd like to have some blocking of adult sites. They're not going to supervise all the time, which I know might be ideal, but there we go. And they're not particularly technical, so they don't want to have to run scripts to turn the parental controls on and off regularly, but they can cope with having different accounts for different people. I haven't found a great way of doing this. I am pretty technical, so I'm happy to spend some time at the command line to set it up, but then it needs to just work.
Please don't just link to DansGuardian. If your answer doesn't address the different user account aspect, I will vote it down. If you want to talk about general parental controls that apply to all users then please start a new question - I'm sure that plenty of people would be interested in it, and I'll link to it from this question.