Outils pour utilisateurs

Outils du site


blog

Utilisateur plusieurs noms même uid

#chown -h -R --from=Plop:Plop reference:reference /
find / /var /home /data /opt -xdev \( -type f -o -type d \) \( -uid $(id -u Plop) -o -gid $(id -g Plop) \) -exec chown $(id -u reference):$(id -g reference) {} \;
usermod -o -u $(id -u reference) -g $(id -g reference) Plop
2025/03/24 15:06

USB over TCP/IP avec USB/IP

Installation

Client et Serveur

Installation de USB/IP sous Debian

apt-get install usbip

Attachement

Serveur
modprobe usbip-core
modprobe usbip-host
usbipd -D
usbip list -l
 
usbip bind -b 1-1

Pour tester

usbip  list -r 127.0.0.1
Client
modprobe usbip-core
modprobe vhci-hcd
usbip -l list -r 192.168.56.10
usbip attach -r 192.168.56.10 -b 1-1

Détach

Sur le Client

usbip port
usbip detach -p 00

Sur le Serveur pour stopper le partage

usbip unbind -b 1-1
2025/03/24 15:06

Upgrade dist-upgrade Ubuntu

Voir : https://www.digitalocean.com/community/tutorials/how-to-upgrade-ubuntu-12-04-lts-to-ubuntu-14-04-lts

sudo apt-get update
sudo apt-get upgrade
# apt-cache policy update-manager-core
sudo apt-get install update-manager-core
sudo do-release-upgrade
2025/03/24 15:06

psh Perl Shell

Une shell interactif pour Perl

perl -MCPAN -e 'install BSD::Resource'
export PERL5LIB=~/perl5/lib/perl5/
git clone https://github.com/gnp/psh
cd psh
perl Makefile.PL
make
make install
~/perl5/bin/psh

ou encore

perl -de0
2025/03/24 15:06

Ubuntu - How to mount HFS drive and ignore permissions - bindfs

Source : https://askubuntu.com/questions/100167/how-to-mount-hfs-drive-and-ignore-permissions

sudo apt-get install bindfs
mkdir ~/myUIDdiskFoo
sudo bindfs -u $(id -u) -g $(id -g) /media/diskFoo ~/myUIDdiskFoo
2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki