Go to ...

Techpository

A Better Technical Repository

RSS Feed

Techpository

Welcome to Techpository.  This is a personal repository of helpful information.  Content on this site is both self-created and copied from other resources.  We try to make sure we give credit where credit is due.  Use the information on this site at your own risk.

Linux

Linux: NIC Bonding Examples

The following example creates to Bonds. Bond0 is Active-Backup Bond1 uses VLAN tagging and LACP Kernel setup: modprobe kernel configuration /etc/modprobe.d/bonding1.conf alias netdev-bond1 bonding options bond1 miimon=100 mode=4 lacp_rate=1 Bond0: ifcfg-bond0 DEVICE=bond0 IPADDR=172.16.0.3 NETMASK=255.255.255.0 NETWORK=172.16.0.0 BROADCAST=172.16.0.255 ONBOOT=yes BOOTPROTO=none TYPE=Bond BONDING_MASTER=yes PREFIX=24 DEFROUTE=yes NAME=”Bond bond0″ BONDING_OPTS=”mode=active-backup miimon=0 arp_ip_target=172.16.0.1 arp_interval=1000″ LAST_CONNECT=1530826407 NM_CONTROLLED=no ifcfg-bond0_slave_1 DEVICE=em1 TYPE=Ethernet NAME=”System em1″

Linux

Linux: Finding HBAs driver version and wwpn

Pull Driver Version: # modinfo qla2xxx | grep version version: 9.00.00.00.40.0-k1 srcversion: 67989F13670BACC60C8CA47 vermagic: 4.1.12-124.17.1.el6uek.x86_64 SMP mod_unload modversions Pull WWPN: # more /sys/class/fc_host/host?/port_name :::::::::::::: /sys/class/fc_host/host1/port_name :::::::::::::: 0x2001000e1e024d24 :::::::::::::: /sys/class/fc_host/host2/port_name :::::::::::::: 0x2001000e1e024d7d

View More ››
Linux

Linux: Raspberry PI – Chromium didn’t shut down correctly – How to fix

When using Chromium as a Kiosk it will not shutdown properly on reboot.  As a result it throws an error every time it restarts. Here is my fix(This assumes you are using pi as your auto login user): 1. mkdir /home/pi/scripts 2. nano /home/pi/scripts/chromiumcleanup 3. Add the following: #!/bin/bash /bin/sed -i ‘s/”exit_type”:”Crashed”/”exit_type”:”Normal”/’ ~/.config/chromium/Default/Preferences 4. ctrl

View More ››
Linux

Linux: Automatically mount cifs from linux to windows with different smb versioning

To automount cifs from linux to windows 2016 you can do the following //remoteserver/sharename /localserver/foldername cifs credentials=/yourcredfilelocation,iocharset=utf8,sec=ntlmv2,vers=3.0     0    0 Put the following in your credential file. [email protected] password=password Then you can type the following command: mount -a If you receive an code = -22 error there is probably something wrong in the options

View More ››