I have apache installed. If you don’t: sudo apt-get install apache2. cd /usr/lib/cgi-bin # Make a file and let everyone execute it sudo touch test.sh && chmod a+x test.sh Then put the some code in the file. For example: #!/bin/bash # get today’s date OUTPUT=»$(date)» # You must add following two lines before # outputting […]
Archive for the ‘Пингвин’ Category
#apt-get install autossh #ssh-keygen… # cat /etc/rc.local … /usr/bin/autossh -M {monitoring port} -N -f -o «PubkeyAuthentication=yes» -o «PasswordAuthentication=no» -o «ServerAliveInterval 30» -o «ServerAliveCountMax 3» -i /path/to/ssh_key -R 12345:localhost:{ssh port} {user}@{remote server} -p {remote ssh port} exit 0
# lsusb Bus 001 Device 005: ID 12d1:14dc Huawei Technologies Co., Ltd. # cat /etc/udev/rules.d/40-E303Switch.rules # Huawei E303 Fallback-Mode Modeswitch ATTRS{idVendor}==»12d1″, ATTRS{idProduct}==»1f01″, RUN+=»/bin/E303Modeswitch.sh» # cat /bin/E303Modeswitch.sh #!/bin/sh sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14db -M «55534243123456780000000000000a11062000000000000100000000000000» # chmod a+x /bin/E303Modeswitch.sh После копипаста необходимо поправить кавычки!
cat /etc/network/interfaces … auto eth0 allow-hotplug eth0 iface eth0 inet manual … cat /etc/dhcpcd.conf … interface eth0 static ip_address=192.168.1.10/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 8.8.8.8
gigabitethernet 1/0/2 — gigabitethernet 1/0/3 Jumper console#sh running-config no spanning-tree ! vlan database vlan 555,969 exit ! interface gigabitethernet 1/0/1 switchport mode trunk switchport trunk allowed vlan add 969 description uplink switchport forbidden default-vlan exit ! interface gigabitethernet 1/0/2 switchport mode customer switchport customer vlan 969 switchport forbidden default-vlan exit ! interface gigabitethernet 1/0/3 switchport […]
All that is required for Thunar to see the phone’s internal storage is : dnf install gvfs-mtp and reboot — this step seemed mandatory (probably just re-logging into X would work, but the machine wanted an update anyway).
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml konsole hotkeys ~/.kde/share/config/konsolerc ~/.kde/share/apps/konsole ~/.kde/share/apps/konsole/konsoleui.rc ~/.kde/share/apps/konsole/konsole ~/.config/konsolerc Keyboard volume buttons xfce4-volumedAUR maps volume keys to xfce-mixer, and displays notifications through xfce4-notifyd. When using PulseAudio, use xfce4-volumed-pulseAUR instead. See also #Xfce4-mixer and pulseaudio. If you are using PulseAudio and do not wish to use Xfce4 mixer, you could use xfce4-pulseaudio-pluginAUR instead. This package provides a […]
If you happen to brick your router, do not fear. You can use TFTP file transfer to flash the router with a new firmware. You need: A TFTP client for your computer. There are both command-line tools and GUI versions available. Your computer must have an IP address from the 192.168.1.x network, as the router […]
1 2 3 4 5 6 7 8 9 10 11 |
mkdir Printer cd Printer wget -c --content-disposition http://ubuntuone.com/78fFlyOAtRwESzSkGv7Dnl sudo dpkg -i ia32-libs-multiarch_20090808ubuntu26_i386.deb <strong><em>На ошибку внимание не обращаем, а продолжаем дальше</em></strong> sudo apt-get install -f sudo dpkg -i ia32-libs-multiarch_20090808ubuntu26_i386.deb wget download.support.xerox.com/pub/drivers/3010/drivers/linux/en_GB/xerox-phaser-3010-3040_1.0-28_i386.zip unzip xerox-phaser-3010-3040_1.0-28_i386.zip sudo dpkg -i xerox-phaser-3010-3040_1.0-28_i386.deb |
Далее Параметры системы → Принтеры (Печать) → etc…
Cisco0: Gi0/1 up up uplink Gi0/2 up up dpi_in Gi0/3 up up dpi_out Gi0/4 up up downlink interface GigabitEthernet0/1 description uplink switchport trunk encapsulation dot1q switchport trunk allowed vlan 40,48 switchport mode trunk spanning-tree portfast spanning-tree bpdufilter enable spanning-tree bpduguard enable interface GigabitEthernet0/2 description dpi_in switchport trunk encapsulation dot1q switchport trunk allowed vlan 40,48 switchport […]