Difference between revisions of "Miscellaneous"

From Briki
Jump to: navigation, search
(2)
(screen: Start a screen session with a title)
 
(32 intermediate revisions by 15 users not shown)
Line 1: Line 1:
KnSjbX  <a href="http://ibbxrmlpnhmj.com/">ibbxrmlpnhmj</a>, [url=http://vgucrynywwfc.com/]vgucrynywwfc[/url], [link=http://jnkbsidgtoxl.com/]jnkbsidgtoxl[/link], http://ndnkpafrqmmk.com/
+
== Find open files on mount ==
 
+
  sudo lsof +f -- /var/media
hoyenglish.neet http://isidroingr.freei.me/john-cwpanama.net.html john cwpanama.netbubbashouse.neet http://isidroingr.freei.me/wctc.neet.html wctc.neetseymour yahoo.com hotmail.com http://isidroingr.freei.me/americanimp-cwpanama.net.html americanimp cwpanama.netyahoo .com http://isidroingr.freei.me/yahoo.ca.html yahoo.cadr.kelley panama city fl http://isidroingr.freei.me/services-yahoo.americangreetings.com.html services yahoo.americangreetings.comdonmiller5 yahoo.com http://isidroingr.freei.me/wank.neet.html wank.neetjiang yahoo.com http://isidroingr.freei.me/actionracing.neet.html actionracing.neetnetzero.neet http://isidroingr.freei.me/st.-dominics-panama-city.html st. dominics panama citycwpanama.com http://isidroingr.freei.me/cwpanama.n-et.html cwpanama.n etnutraceuticals worldwide s.a. panama http://isidroingr.freei.me/shopping.yahoo.html shopping.yahoo
+
Also useful in case you're trying to work out why an unmounted partition is still showing as 'in use' in tools like e2fsck:
 
+
  sudo fuser -v -m /dev/sdX1
t.e.w.m.s middle school http://bessiemi.freeweb7.com/octara-school-district.0rg.html octara school district.0rgportland or. school district http://bessiemi.freeweb7.com/spring-istnet.ru.html spring istnet.ruhillsborough county school dist http://bessiemi.freeweb7.com/portland-or.-school-district.html portland or. school districtwww.bonneville hot spring resort http://bessiemi.freeweb7.com/marion-school.-district-seven.html marion school. district sevenwww.big spring texas.org http://bessiemi.freeweb7.com/salt-spring-fl.-strom.html salt spring fl. stromav district.org http://bessiemi.freeweb7.com/spring-thomas.com.html spring thomas.comwall school.com http://bessiemi.freeweb7.com/dr.-moy-spring-texas.html dr. moy spring texasgreenville.k12.sc.us district email.asp http://bessiemi.freeweb7.com/www.district-204.org.html www.district 204.orgst. marys school http://bessiemi.freeweb7.com/st.-marys-school.html st. marys schooldr.moy spring texas http://bessiemi.freeweb7.com/rondout-school-district-72.il.html rondout school district 72.il
 
 
 
deyse globo.com http://genevafran28.tripod.com/www.globo-esporteespetacular.com.html www.globo esporteespetacular.comlsi international inc http://genevafran28.tripod.com/rede.orglk.html rede.orglkmarisa vs. antonella http://genevafran28.tripod.com/www.xuxa.con.br.html www.xuxa.con.bresporteespetacular.mp3 mp3 http://genevafran28.tripod.com/dr.-donald-baron.html dr. donald baronrede baron hotmail.com http://genevafran28.tripod.com/wwwpensacolanews.com.html wwwpensacolanews.comwww.globo.com.br tvxuxa http://genevafran28.tripod.com/www.xuxa.br.html www.xuxa.brantonella community.jornal http://genevafran28.tripod.com/www.g1.maisvoce.html www.g1.maisvocewww.countries with dengue fever http://genevafran28.tripod.com/www.pensacola-news-jornal.com.html www.pensacola news jornal.comcervezas modelo.com http://genevafran28.tripod.com/www.fishmpegs.com.html www.fishmpegs.comwww.flecha amarillo cim http://genevafran28.tripod.com/globo-vicion.com.html globo vicion.com
 
 
 
parigon speedway http://zrugku.xhost.ro/knoxville-speedway.html knoxville speedwaywinchestermotorspeedway http://zrugku.xhost.ro/www.south-park.com.html www.south park.comadvise traffic daytona speedway http://zrugku.xhost.ro/newhampshire.com.html newhampshire.comwest virginina writers inc http://zrugku.xhost.ro/www.cars-protection-plus-knoxvill-tn.html www.cars protection plus knoxvill tnwww.south park.com http://zrugku.xhost.ro/sunshinespeedway.com.html sunshinespeedway.com3 phase elec.motors http://zrugku.xhost.ro/105-speedway.com.html 105 speedway.comruby tuesdays selinsgrove pa http://zrugku.xhost.ro/wwwcharlottemotorspeedway.com.html wwwcharlottemotorspeedway.comjalon valley villa rentals.com http://zrugku.xhost.ro/new-hampshire-national-speedaway.html new hampshire national speedawayhorizon suzuki atlanta ga http://zrugku.xhost.ro/sound-advice.com.html sound advice.comcherokee village ar http://zrugku.xhost.ro/death-jr.-2-cheats.html death jr. 2 cheats
 
 
 
== Changing default ALSA soundcard ==
 
<pre>
 
asoundconf list
 
asoundconf set-default-card <cardname>
 
</pre>
 
  
 
== List hardware details ==
 
== List hardware details ==
Line 71: Line 60:
 
* chmod 775 $dir
 
* chmod 775 $dir
  
== Power management on VGA / DVI monitors ==
+
== Measuring LAN performance ==
 
+
Host 1 (linux):
There is a standard called DPMS where a couple of pins are used for the computer to signal the monitor to go into a low-power mode.  This is separate from any power management settings on the computer itself, and from the kde/gnome screensaver.
+
<pre>
 
+
iperf -s -p 8123
The nVidia driver fully supports DPMS, and the nvidia configuration tool typically sets it up for you.  If you want to turn it off, comment out the line in the monitor section of xorg.conf.
+
</pre>
 +
Host 2 (mac):
 
<pre>
 
<pre>
# Option "DPMS" "true"
+
~/bin/iperf -c host1 -p 8123
 
</pre>
 
</pre>
  
== awstats: Can't locate auto/Geo/IP/isp_by_addr.al ==
+
== screen: Start a screen session with a title ==
* Change ''/usr/share/awstats/plugins/geoip_isp_maxmind.pm'' from '''isp_by_xxx''' to '''org_by_xxx'''
+
  screen -S <title>

Latest revision as of 08:59, 3 November 2021

Find open files on mount

 sudo lsof +f -- /var/media

Also useful in case you're trying to work out why an unmounted partition is still showing as 'in use' in tools like e2fsck:

 sudo fuser -v -m /dev/sdX1

List hardware details

sudo lshw -businfo

Add swap space

  • Create swap partition using fdisk
  • Create swap filesystem
sudo mkswap <device>
  • Activate swap
sudo swapon <device>
  • Modify /etc/fstab to allow swap to be activated at boot time

Change userid/groupid for an existing user/group

  • Change groupid in /etc/group
  • Run sudo grpconv to update /etc/gshadow
  • Change userid in /etc/passwd (and also the primary groupid for any changed groupids)
  • Run sudo pwconv to update /etc/shadow

Music Naming Strategy

Type Title TrackNum Artist Sort Artist Album Artist Sort Album Artist Album Sort Album Disc Genre Compilation
TIT2 TRCK TPE1 TSOP TPE2 TSO2 TALB TSOA TPOS TCON TCMP
Albums Title TrackNum Artist BLANK Directory1 BLANK / Number word Album Directory2 [Disc n] Disc Genre BLANK
Compilations Title TrackNum Artist BLANK Various Artists ZZZD Album Directory2 [Disc n] Disc Genre 1
Singles Title BLANK Artist BLANK Various Artists ZZZH Singles BLANK BLANK Genre 1
Soundtracks Title TrackNum Artist BLANK Various Artists ZZZL Album Directory2 [Disc n] Disc Soundtrack (24) 1
Spoken Title TrackNum Artist BLANK Directory1 ZZZP Album Directory2 [Disc n] Disc Genre BLANK
Fun Title BLANK Artist BLANK BLANK ZZZT Fun BLANK BLANK Comedy (57) 1
  • Albums: eyeD3 --to-v2.3 --set-text-frame="TSOP:" --set-text-frame="TPE2:$artist" --set-text-frame="TSO2:" --set-text-frame="TSOA:$album" --set-text-frame="TCMP:" $file
  • Compilations: eyeD3 --to-v2.3 --set-text-frame="TSOP:" --set-text-frame="TPE2:Various Artists" --set-text-frame="TSO2:ZZZD" --set-text-frame="TSOA:$album" --set-text-frame="TCMP:1" $file
  • Singles: eyeD3 --to-v2.3 --set-text-frame="TRCK:" --set-text-frame="TSOP:" --set-text-frame="TPE2:Various Artists" --set-text-frame="TSO2:ZZZH" --set-text-frame="TALB:Singles" --set-text-frame="TSOA:" --set-text-frame="TPOS:" --set-text-frame="TCMP:1" $file
  • Soundtracks: eyeD3 --to-v2.3 --set-text-frame="TSOP:" --set-text-frame="TPE2:Various Artists" --set-text-frame="TSO2:ZZZL" --set-text-frame="TSOA:$album" --set-text-frame="TCMP:1" $file

File Ownership

  • chown root:admin $file
  • chmod 664 $file
  • chown root:admin $dir
  • chmod 775 $dir

Measuring LAN performance

Host 1 (linux):

iperf -s -p 8123

Host 2 (mac):

~/bin/iperf -c host1 -p 8123

screen: Start a screen session with a title

 screen -S <title>