Screenfetch

Kreiranje Slackware paketa

Moderator: Urednik


Administrator
Administrator
offline
User avatar

Posts: 4127
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 08 Jul 2013, 16:39


Skini E. Hansonovu granu SBo git repoa. Nalazi se u desktop/screenfetch.

Code: Select all

git clone -b erik git://slackbuilds.org/slackbuilds



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 12 Jul 2013, 12:06


Evo Screenfetch verzije 3.0.5.
U SlackBuild skriptu zamenjena je samo verzija, takođe ubačeni podaci u screenfetch.info.

Prikaz:
screen(001).jpeg
Preuzimanje:
http://www.paluba.info/slackware-srbija ... tch-3.0.5/" onclick="window.open(this.href);return false;

Napomena
U verziji 3.0.5 bi trebala da radi i detekcija grafičke karte ali kao što se može videti do detekcije grafičke karte nije došlo...

Edit
Izgleda da detekcija grafičke karte još nije do kraja proverena
http://git.silverirc.com/cgit.cgi/scree ... f7e721b883" onclick="window.open(this.href);return false;
Evo problem sa Debianom, ali kod njega dva puta prikazuje grafičku kartu :) , prijavio sam ispod za Slekver
https://github.com/KittyKatt/screenFetc ... t-20819287" onclick="window.open(this.href);return false;
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

Posts: 2845
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 12 Jul 2013, 13:30


Ni kod mene nema detekcije grafičke kartice.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Poznata ličnost
Poznata ličnost
offline

Posts: 99
Joined: 12 Jan 2012, 10:22
Location: Novi Sad

Post Napisano: 12 Jul 2013, 14:29


Kod mene ima.
Attachments
screenfetch.png



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 12 Jul 2013, 14:45


Zero, koji tj. čiji SlackBuild ili gotov paket si koristio?
Ako je nešto tvoje, aj ga zakači negde ako ti nije teško.

Edit
Izgleda da ga nisi instalirao već da ga pokrećeš iz skripta.
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

Posts: 2845
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 12 Jul 2013, 14:55


Sad sam probao i 32bit verziju sa kernelom 3.6.7 na maloj mašini i opet neće da prepozna grafiku. Tu je intel i915m grafika.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 12 Jul 2013, 14:58


Pa uzmi i ti Stereo na git hubu pa prijavi grešku. :)
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

Posts: 4127
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 12 Jul 2013, 15:12


Nema 32-bitne i 64-bitne verzije. Ista je i jedna i druga. Arhitektura bi zapravo trebalo da bude noarch (tj ne zavisi od arhitekture). Nisam video da postoji praksa da se noarch paketi tako i označavaju na SBo.

Koliko vidim zero koristi svoju lokalnu kopiju, verovatno ručno kopiranu u neki direktorijum u izvršnoj putanji. Moj SlackBuild ga instalira kao /usr/bin/screenfetch.

Ni kod mene nema GPU polja. ATI, FLOSS drajveri.



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 12 Jul 2013, 15:18


Takodje potvrdjujem sa i915 kartom na netbook-u, ovde su u pitanju FLOSS drajveri i ne vidi se
12.07.2013.jpeg
Ispravljeno Bocke, izbaceno obelezje 32-bit arhitekture.
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

Posts: 2845
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 12 Jul 2013, 15:19


@Broker

iskreno mrzelo me da se registrujem a radim na drugom problemu koji mi je trenutno dosta bitniji pa će bug report ići verovatno tek nakon vikenda.

Nego, nakon što ni na maloj mašini nije prepoznao VGA, ukucao sam

Code: Select all

$ screenfetch -v
što je dalo zanimljiv rezultat. Evo prikaza sa desktop računara:

Code: Select all

zeljko@stereo:~$ screenfetch -v
:: Finding distro...found as 'Slackware '
:: Finding hostname and user...found as 'zeljko@stereo.stereo.local'
:: Finding kernel version...found as 'x86_64 Linux 3.2.45'
:: Finding current uptime...found as '3d 1h 6m'
:: Finding current package count...found as '1072'
:: Finding current shell...found as 'bash 4.2.37'
:: Finding current resolution(s)...found as '1360x768'
:: Finding desktop environment...found as 'XFCE4'
:: Finding window manager...found as 'Xfwm4'
:: Finding window manager theme...found as 'elementary'
:: Finding GTK2 theme...found as 'Xfce-4.6'
:: Finding GTK3 theme...found as 'Not Found'
:: Finding icon theme...found as 'Faenza-Radiance'
:: Finding user font...found as 'Sans 10'
:: Finding current GPU...found as ''
:: Finding current CPU...found as 'AMD Athlon II X2 220 Processor @ 2.812GHz'
:: Finding current RAM usage...found as '1765MB / 5953MB'
                   :::::::
             :::::::::::::::::::               zeljko@stereo.stereo.local
          :::::::::::::::::::::::::            OS: Slackware 
        ::::::::cllcccccllllllll::::::         Kernel: x86_64 Linux 3.2.45
     :::::::::lc               dc:::::::       Uptime: 3d 1h 6m
    ::::::::cl   clllccllll    oc:::::::::     Packages: 1072
   :::::::::o   lc::::::::co   oc::::::::::    Shell: bash 4.2.37
  ::::::::::o    cccclc:::::clcc::::::::::::   Resolution: 1360x768
  :::::::::::lc        cclccclc:::::::::::::   DE: XFCE4
 ::::::::::::::lcclcc          lc::::::::::::  WM: Xfwm4
 ::::::::::cclcc:::::lccclc     oc:::::::::::  WM Theme: elementary
 ::::::::::o    l::::::::::l    lc:::::::::::  GTK2 Theme: Xfce-4.6
  :::::cll:o     clcllcccll     o:::::::::::   Icon Theme: Faenza-Radiance
  :::::occ:o                  clc:::::::::::   Font: Sans 10
   ::::ocl:ccslclccclclccclclc:::::::::::::    Disk: 431G / 516G (84%)
    :::oclcccccccccccccllllllllllllll:::::     CPU: AMD Athlon II X2 220 Processor @ 2.812GHz
     ::lcc1lcccccccccccccccccccccccco::::      RAM: 1765MB / 5953MB
       ::::::::::::::::::::::::::::::::       
         ::::::::::::::::::::::::::::         
            ::::::::::::::::::::::
                 ::::::::::::
Ovaj red mi je posevno zanimljiv

Code: Select all

:: Finding current GPU...found as ''
iz /usr/bin/screenfetch se vidi da kod za detekciju izgleda ovako:

Code: Select all

# GPU Detection - Begin (EXPERIMENTAL!)
detectgpu () {
	if [ -n "$(type -p lspci)" ]; then
		gpu_info=$(lspci | grep VGA)
		gpu=$(echo "$gpu_info" | grep -oE '\[.*\]' | sed 's/\[//;s/\]//')
		gpu=$(echo "${gpu}" | sed -n '1h;2,$H;${g;s/\n/, /g;p}')
	fi
	if [[ -n "$(type -p glxinfo)" && -z "$gpu" ]]; then
		gpu_info=$(glxinfo 2>/dev/null)
		gpu=$(echo "$gpu_info" | grep "OpenGL renderer string")
		gpu=$(echo "$gpu" | cut -d ':' -f2)
		gpu="${gpu:1}"
		gpu_info=$(echo "$gpu_info" | grep "OpenGL vendor string")
	fi
	if [[ "${distro}" == "Mac OS X" ]]; then
		gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}')
	fi

	if [ -n "$gpu" ];then
		if [ $(echo "$gpu_info" | grep -i nvidia | wc -l) -gt 0 ];then
			gpu_info="NVidia "
		elif [ $(echo "$gpu_info" | grep -i intel | wc -l) -gt 0 ];then
			gpu_info="Intel "
		elif [ $(echo "$gpu_info" | grep -i amd | wc -l) -gt 0 ];then
			gpu_info="AMD "
		elif [ $(echo "$gpu_info" | grep -i ati | wc -l) -gt 0 ];then
			gpu_info="ATI "
		else
			gpu_info=$(echo "$gpu_info" | cut -d ':' -f2)
			gpu_info="${gpu_info:1} "
		fi
		gpu="${gpu_info}${gpu}"
	else
		gpu="Not Found"
	fi

	[[ "$verbosity" -eq "1" ]] && verboseOut "Finding current GPU...found as '$gpu'"
}
# GPU Detection - End
Dakle, kao što se vidi, još uvek je u eksperimentalnoj fazi. Više nemam vremena da se igram sa ovim.
Ukoliko neko naiđe na rešenje koje možda bolje funkcioniše neka javi. Ja ću se igrati sa ovim tek kad uhvatim vremena.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest