I have an animated gif and I'd like to cut off the last 5 seconds. Does anyone know how to do that in Linux/Ubuntu?
Rotareti's questions
Can someone tell me from experience if there are issues running Ubuntu 16.04 on a Lenovo ThinkPad x260? I'm about to order one with the intel i7 option. Thanks in advance!
Edit:
Unfortunately there isn't really much information on which components exactly are used. This is what i got:
- Processor: Intel Core i7-6500U-Prozessor (4 MB Cache, 3.10 GHz)
- Display: 12.5 FHD IPS (1920 x 1080) Non-Touch
- RAM: 16 GB DDR4 2133 MHz SoDIMM
- Video: Intel HD Graphics 520
- Security Chip: Software TPM and Hardware dTPM
- Keyboard: Englisch + backlit
- Pointing Device: UltraNav (TrackPoint and ClickPad) with finger print scanner.
- TPM Setting: Software TPM-capable
- Camera: 720p HD Camera
- Harddrive: 256 GB Solid-State-Laufwerk, SATA3 OPAL 2.0-fähig (I would replace this one)
- Expansion Slot: Smart Card Reader
- Battery: Lithium-Ionen-Battery with 3 Cells, 23,2 Wh, Front
- Battery Back: Lithium-Ionen-Battery with 6 Cells, 72 Wh, back
- Integrated Wi-Fi-/WLAN-Adapter: Intel Dual Band Wireless-AC 8260 WLAN (2x2) + Bluetooth Version 4.1, vPro Display: X260 FHD IPS NT WW
My terminal has a default prompt format like this one:
username@boxname /path/to/current/directory $
The code that produces it looks like this: (it has some color definitions too)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]'
If the path to the current directory gets too long it becomes unpleasant to work with the terminal because you constantly break lines. In such cases I would prefer a format that produces a shorter string like this one:
username@boxname current_dir_name $
The code that produces it would look like this (again with color):
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] $(basename ${PWD}) \$ \[\033[00m\]'
Does anyone know how I could easily toggle the format of the current terminal window from one style to the other by just typing for example: prompttoggle
?
I use a passphrase protected ssh keyfile to connect to a server. Each time I open a new terminal I have to re-enter the passphrase. Can I make Ubuntu remember the passphrase until I log-off or for an hour or so?
I just installed Xampp 5.6.21 (Apache 2.4.18)
I moved the installation from /opt/lampp
to /home/peter/project/xampp
and created a symlink from /opt/lampp
to the new destination.
I can start the server:
$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 5.6.21-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
If I enter http://localhost/xampp
in the browser I get an 403 forbidden
error. Does anyone know why?
I have pip installed for python3:
$ pip3 -V
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
If I try to upgrade to Version 8, this is what I get:
$ sudo pip3 install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#md5=0570520434c5b600d89ec95393b2650b
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python3/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Can anyone tell me why it won't upgrade to a newer version?
Can I somehow change the Unity Dash so that the search results appear in a list?
I don't like that i have to use more than ↑ and ↓ in order to select an item and I find it hard to overview the results fast if they are spread over the entire screen.
Sorry for my pickiness, but the Dash is pretty much the only GUI element of the entire OS that I repeatedly operate, so it is quite important to me that it works well.
I would like to cycle through open tabs in Guake the same way I do in Chromium or Firefox with Ctrl+Tab or Ctrl+Shift+Tab. But for some reason Guake Config won't let me.
If I go to "Guake Preferences" > "Keyboard Shortcuts" there are the two options:
- Go to previous tab
- Go to next tab
But the GUI won't let me assign Ctrl+Tab or Ctrl+Shift+Tab to them.
I do not get the expected file permissions from my Lan Server using NFS4.
Mounting the 'exports' dir as a client works fine. ls
outputs the correct folder content. But if the client tries to cd
into a dir, he gets a "Permission denied".
If the client uses ls -l
to list the content of the mounted folder, he gets GID:UID numbers for the owner of each file. I was expecting NFS4 to give the client username:groupname as a string not as a number. The shown UIDs do not match the UID of the client user. I think this is why I get "permission denied".
I have a user 'Paul'(UID=1004) on the server and a user 'Paul'(UID=1000) on the client. I'd like to handle NFS4 file permissions by the names NOT by the IDs.
This is the current setup:
Mounting as client:
how I mount the exports on the Ubuntu 14.04 client:
sudo mount.nfs4 192.168.178.10:/ /fs_data -o soft,intr,rsize=8192,wsize=8192
NFS Server Setup:
all the changes that I made to the NFS4 server on Raspbian, after installing 'nfs-kernel-server', 'rpcbind', 'nfs-common'
/etc/default/rpcbind
OPTIONS=""
/etc/hosts.deny
rpcbind:ALL
/etc/hosts.allow
rpcbind: 192.168.178.20 , 192.168.178.21
/etc/default/nfs-kernel-server
NEED_SVCGSSD=NO
/etc/default/nfs-common
NEED_IDMAPD=YES
NEED_GSSD=no
/etc/exports
/exports 192.168.178.20(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash,insecure) 192.168.178.21(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash,insecure)
/exports/paul 192.168.178.20(rw,sync,no_subtree_check,no_root_squash,insecure) 192.168.178.21(rw,sync,no_subtree_check,no_root_squash,insecure)
Any clue, what I'm missing?