Search This Blog

Showing posts with label Raspberry Pi. Show all posts
Showing posts with label Raspberry Pi. Show all posts

Tuesday, May 24, 2016

Linux: copy multiple files without asking overwrite confirmation

Linux: copy multiple files without asking overwrite confirmation

To always overwrite without prompt use a backslash:
$ \cp *.jpg ../

Linux: how to rename multiple files at once

Linux: how to rename multiple files at once

Very easy:

rename from to files...
rename JPG jpg *.JPG

Friday, October 18, 2013

Linux: cannot set LC_CTYPE locale or related problems

To make it permanent just edit the file “/etc/environment” and add the line:
LC_ALL=C
or in
/etc/profile
add
export LC_ALL=C

Wednesday, October 9, 2013

Simple access SVN Subversion repository behind proxy

Uncommenting and set the following lines: 

[global]
http-proxy-host=my.proxy
http-proxy-port=80
http-proxy-username=[username]
http-proxy-password=[password]

in file
~/.subversion/servers

Tuesday, July 30, 2013

Automatic set proxy on boot on Linux

You can set the variable globally in /etc/profile or by creating a script for your variable in /etc/profile.d:

export http_proxy="http://\:@:"
export https_proxy="http://\:@:"

Use network proxy environment settings for "sudo" user on Linux

the trick is to add enviroment variables to sudoers config:
sudo nano /etc/sudoers
add these lines:
Defaults env_keep +="http_proxy"
Defaults env_keep +="https_proxy"
from ArchLinux wiki https://wiki.archlinux.org/index.php/Sudo#Environment_variables_.28Outdated.3F.29